!function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";
    var t = /^(\s*)(>[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/,
        n = /^(\s*)(>[> ]*|[*+-] \[[x ]\]|[*+-]|(\d+)[.)])(\s*)$/, r = /[*+-]\s/;
    e.commands.newlineAndIndentContinueMarkdownList = function (i) {
        if (i.getOption("disableInput")) return e.Pass;
        for (var a = i.listSelections(), o = [], s = 0; s < a.length; s++) {
            var l = a[s].head, c = i.getStateAfter(l.line), u = !1 !== c.list, d = 0 !== c.quote, f = i.getLine(l.line),
                m = t.exec(f);
            if (!a[s].empty() || !u && !d || !m) return void i.execCommand("newlineAndIndent");
            if (n.test(f)) />\s*$/.test(f) || i.replaceRange("", {line: l.line, ch: 0}, {
                line: l.line,
                ch: l.ch + 1
            }), o[s] = "\n"; else {
                var p = m[1], h = m[5],
                    g = r.test(m[2]) || m[2].indexOf(">") >= 0 ? m[2].replace("x", " ") : parseInt(m[3], 10) + (File.option.olStyle ? 1 : 0) + m[4];
                o[s] = "\n" + p + g + h
            }
        }
        i.replaceSelections(o)
    }
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";

    function t(e, t) {
        if (!e.hasOwnProperty(t)) throw new Error("Undefined state " + t + " in simple mode")
    }

    function n(e, t) {
        if (!e) return /(?:)/;
        var n = "";
        return e instanceof RegExp ? (e.ignoreCase && (n = "i"), e = e.source) : e = String(e), new RegExp((!1 === t ? "" : "^") + "(?:" + e + ")", n)
    }

    function r(e) {
        if (!e) return null;
        if ("string" == typeof e) return e.replace(/\./g, " ");
        for (var t = [], n = 0; n < e.length; n++) t.push(e[n] && e[n].replace(/\./g, " "));
        return t
    }

    function i(e, i) {
        (e.next || e.push) && t(i, e.next || e.push), this.regex = n(e.regex), this.token = r(e.token), this.data = e
    }

    function a(e, t) {
        return function (n, r) {
            if (r.pending) {
                var i = r.pending.shift();
                return 0 == r.pending.length && (r.pending = null), n.pos += i.text.length, i.token
            }
            if (r.local) {
                if (r.local.end && n.match(r.local.end)) {
                    o = r.local.endToken || null;
                    return r.local = r.localState = null, o
                }
                var a, o = r.local.mode.token(n, r.localState);
                return r.local.endScan && (a = r.local.endScan.exec(n.current())) && (n.pos = n.start + a.index), o
            }
            for (var l = e[r.state], c = 0; c < l.length; c++) {
                var u = l[c], d = (!u.data.sol || n.sol()) && n.match(u.regex);
                if (d) {
                    if (u.data.next ? r.state = u.data.next : u.data.push ? ((r.stack || (r.stack = [])).push(r.state), r.state = u.data.push) : u.data.pop && r.stack && r.stack.length && (r.state = r.stack.pop()), u.data.mode && s(t, r, u.data.mode, u.token), u.data.indent && r.indent.push(n.indentation() + t.indentUnit), u.data.dedent && r.indent.pop(), d.length > 2) {
                        r.pending = [];
                        for (var f = 2; f < d.length; f++) d[f] && r.pending.push({text: d[f], token: u.token[f - 1]});
                        return n.backUp(d[0].length - (d[1] ? d[1].length : 0)), u.token[0]
                    }
                    return u.token && u.token.join ? u.token[0] : u.token
                }
            }
            return n.next(), null
        }
    }

    function o(e, t) {
        if (e === t) return !0;
        if (!e || "object" != typeof e || !t || "object" != typeof t) return !1;
        var n = 0;
        for (var r in e) if (e.hasOwnProperty(r)) {
            if (!t.hasOwnProperty(r) || !o(e[r], t[r])) return !1;
            n++
        }
        for (var r in t) t.hasOwnProperty(r) && n--;
        return 0 == n
    }

    function s(t, r, i, a) {
        var s;
        if (i.persistent) for (var l = r.persistentStates; l && !s; l = l.next) (i.spec ? o(i.spec, l.spec) : i.mode == l.mode) && (s = l);
        var c = s ? s.mode : i.mode || e.getMode(t, i.spec), u = s ? s.state : e.startState(c);
        i.persistent && !s && (r.persistentStates = {
            mode: c,
            spec: i.spec,
            state: u,
            next: r.persistentStates
        }), r.localState = u, r.local = {
            mode: c,
            end: i.end && n(i.end),
            endScan: i.end && !1 !== i.forceEnd && n(i.end, !1),
            endToken: a && a.join ? a[a.length - 1] : a
        }
    }

    function l(e, t) {
        for (var n = 0; n < t.length; n++) if (t[n] === e) return !0
    }

    function c(t, n) {
        return function (r, i, a) {
            if (r.local && r.local.mode.indent) return r.local.mode.indent(r.localState, i, a);
            if (null == r.indent || r.local || n.dontIndentStates && l(r.state, n.dontIndentStates) > -1) return e.Pass;
            var o = r.indent.length - 1, s = t[r.state];
            e: for (; ;) {
                for (var c = 0; c < s.length; c++) {
                    var u = s[c];
                    if (u.data.dedent && !1 !== u.data.dedentIfLineStart) {
                        var d = u.regex.exec(i);
                        if (d && d[0]) {
                            o-- , (u.next || u.push) && (s = t[u.next || u.push]), i = i.slice(d[0].length);
                            continue e
                        }
                    }
                }
                break
            }
            return o < 0 ? 0 : r.indent[o]
        }
    }

    e.defineSimpleMode = function (t, n) {
        e.defineMode(t, function (t) {
            return e.simpleMode(t, n)
        })
    }, e.simpleMode = function (n, r) {
        t(r, "start");
        var o = {}, s = r.meta || {}, l = !1;
        for (var u in r) if (u != s && r.hasOwnProperty(u)) for (var d = o[u] = [], f = r[u], m = 0; m < f.length; m++) {
            var p = f[m];
            d.push(new i(p, r)), (p.indent || p.dedent) && (l = !0)
        }
        var h = {
            startState: function () {
                return {state: "start", pending: null, local: null, localState: null, indent: l ? [] : null}
            }, copyState: function (t) {
                var n = {
                    state: t.state,
                    pending: t.pending,
                    local: t.local,
                    localState: null,
                    indent: t.indent && t.indent.slice(0)
                };
                t.localState && (n.localState = e.copyState(t.local.mode, t.localState)), t.stack && (n.stack = t.stack.slice(0));
                for (var r = t.persistentStates; r; r = r.next) n.persistentStates = {
                    mode: r.mode,
                    spec: r.spec,
                    state: r.state == t.localState ? n.localState : e.copyState(r.mode, r.state),
                    next: n.persistentStates
                };
                return n
            }, token: a(o, n), innerMode: function (e) {
                return e.local && {mode: e.local.mode, state: e.localState}
            }, indent: c(o, s)
        };
        if (s) for (var g in s) s.hasOwnProperty(g) && (h[g] = s[g]);
        return h
    }
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";
    e.multiplexingMode = function (t) {
        function n(e, t, n, r) {
            if ("string" == typeof t) {
                var i = e.indexOf(t, n);
                return r && i > -1 ? i + t.length : i
            }
            var a = t.exec(n ? e.slice(n) : e);
            return a ? a.index + n + (r ? a[0].length : 0) : -1
        }

        var r = Array.prototype.slice.call(arguments, 1);
        return {
            startState: function () {
                return {outer: e.startState(t), innerActive: null, inner: null}
            }, copyState: function (n) {
                return {
                    outer: e.copyState(t, n.outer),
                    innerActive: n.innerActive,
                    inner: n.innerActive && e.copyState(n.innerActive.mode, n.inner)
                }
            }, token: function (i, a) {
                if (a.innerActive) {
                    var o = a.innerActive, s = i.string;
                    if (!o.close && i.sol()) return a.innerActive = a.inner = null, this.token(i, a);
                    var l = o.close ? n(s, o.close, i.pos, o.parseDelimiters) : -1;
                    if (l == i.pos && !o.parseDelimiters) return i.match(o.close), a.innerActive = a.inner = null, o.delimStyle && o.delimStyle + " " + o.delimStyle + "-close";
                    l > -1 && (i.string = s.slice(0, l));
                    var c = o.mode.token(i, a.inner);
                    return l > -1 && (i.string = s), l == i.pos && o.parseDelimiters && (a.innerActive = a.inner = null), o.innerStyle && (c = c ? c + " " + o.innerStyle : o.innerStyle), c
                }
                for (var u = 1 / 0, s = i.string, d = 0; d < r.length; ++d) {
                    var f = r[d];
                    if ((l = n(s, f.open, i.pos)) == i.pos) return f.parseDelimiters || i.match(f.open), a.innerActive = f, a.inner = e.startState(f.mode, t.indent ? t.indent(a.outer, "") : 0), f.delimStyle && f.delimStyle + " " + f.delimStyle + "-open";
                    -1 != l && l < u && (u = l)
                }
                u != 1 / 0 && (i.string = s.slice(0, u));
                var m = t.token(i, a.outer);
                return u != 1 / 0 && (i.string = s), m
            }, indent: function (n, r) {
                var i = n.innerActive ? n.innerActive.mode : t;
                return i.indent ? i.indent(n.innerActive ? n.inner : n.outer, r) : e.Pass
            }, blankLine: function (n) {
                var i = n.innerActive ? n.innerActive.mode : t;
                if (i.blankLine && i.blankLine(n.innerActive ? n.inner : n.outer), n.innerActive) "\n" === n.innerActive.close && (n.innerActive = n.inner = null); else for (var a = 0; a < r.length; ++a) {
                    var o = r[a];
                    "\n" === o.open && (n.innerActive = o, n.inner = e.startState(o.mode, i.indent ? i.indent(n.outer, "") : 0))
                }
            }, electricChars: t.electricChars, innerMode: function (e) {
                return e.inner ? {state: e.inner, mode: e.innerActive.mode} : {state: e.outer, mode: t}
            }
        }
    }
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";

    function t(e, t, n) {
        return /^(?:operator|sof|keyword c|case|new|export|default|[\[{}\(,;:]|=>)$/.test(t.lastType) || "quasi" == t.lastType && /\{\s*$/.test(e.string.slice(0, e.pos - (n || 0)))
    }

    e.defineMode("javascript", function (n, r) {
        function i(e) {
            for (var t, n = !1, r = !1; null != (t = e.next());) {
                if (!n) {
                    if ("/" == t && !r) return;
                    "[" == t ? r = !0 : r && "]" == t && (r = !1)
                }
                n = !n && "\\" == t
            }
        }

        function a(e, t, n) {
            return Ee = e, ze = n, t
        }

        function o(e, n) {
            var r = e.next();
            if ('"' == r || "'" == r) return n.tokenize = s(r), n.tokenize(e, n);
            if ("." == r && e.match(/^\d+(?:[eE][+\-]?\d+)?/)) return a("number", "number");
            if ("." == r && e.match("..")) return a("spread", "meta");
            if (/[\[\]{}\(\),;\:\.]/.test(r)) return a(r);
            if ("=" == r && e.eat(">")) return a("=>", "operator");
            if ("0" == r && e.eat(/x/i)) return e.eatWhile(/[\da-f]/i), a("number", "number");
            if ("0" == r && e.eat(/o/i)) return e.eatWhile(/[0-7]/i), a("number", "number");
            if ("0" == r && e.eat(/b/i)) return e.eatWhile(/[01]/i), a("number", "number");
            if (/\d/.test(r)) return e.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/), a("number", "number");
            if ("/" == r) return e.eat("*") ? (n.tokenize = l, l(e, n)) : e.eat("/") ? (e.skipToEnd(), a("comment", "comment")) : t(e, n, 1) ? (i(e), e.match(/^\b(([gimyu])(?![gimyu]*\2))+\b/), a("regexp", "string-2")) : (e.eatWhile($e), a("operator", "operator", e.current()));
            if ("`" == r) return n.tokenize = c, c(e, n);
            if ("#" == r) return e.skipToEnd(), a("error", "error");
            if ($e.test(r)) return ">" == r && n.lexical && ">" == n.lexical.type || e.eatWhile($e), a("operator", "operator", e.current());
            if (Ae.test(r)) {
                e.eatWhile(Ae);
                var o = e.current(), u = je.propertyIsEnumerable(o) && je[o];
                return u && "." != n.lastType ? a(u.type, u.style, o) : a("variable", "variable", o)
            }
        }

        function s(e) {
            return function (t, n) {
                var r, i = !1;
                if (Te && "@" == t.peek() && t.match(Pe)) return n.tokenize = o, a("jsonld-keyword", "meta");
                for (; null != (r = t.next()) && (r != e || i);) i = !i && "\\" == r;
                return i || (n.tokenize = o), a("string", "string")
            }
        }

        function l(e, t) {
            for (var n, r = !1; n = e.next();) {
                if ("/" == n && r) {
                    t.tokenize = o;
                    break
                }
                r = "*" == n
            }
            return a("comment", "comment")
        }

        function c(e, t) {
            for (var n, r = !1; null != (n = e.next());) {
                if (!r && ("`" == n || "$" == n && e.eat("{"))) {
                    t.tokenize = o;
                    break
                }
                r = !r && "\\" == n
            }
            return a("quasi", "string-2", e.current())
        }

        function u(e, t) {
            t.fatArrowAt && (t.fatArrowAt = null);
            var n = e.string.indexOf("=>", e.start);
            if (!(n < 0)) {
                if (Ie) {
                    var r = /:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start, n));
                    r && (n = r.index)
                }
                for (var i = 0, a = !1, o = n - 1; o >= 0; --o) {
                    var s = e.string.charAt(o), l = Le.indexOf(s);
                    if (l >= 0 && l < 3) {
                        if (!i) {
                            ++o;
                            break
                        }
                        if (0 == --i) {
                            "(" == s && (a = !0);
                            break
                        }
                    } else if (l >= 3 && l < 6) ++i; else if (Ae.test(s)) a = !0; else {
                        if (/["'\/]/.test(s)) return;
                        if (a && !i) {
                            ++o;
                            break
                        }
                    }
                }
                a && !i && (t.fatArrowAt = o)
            }
        }

        function d(e, t, n, r, i, a) {
            this.indented = e, this.column = t, this.type = n, this.prev = i, this.info = a, null != r && (this.align = r)
        }

        function f(e, t) {
            for (r = e.localVars; r; r = r.next) if (r.name == t) return !0;
            for (var n = e.context; n; n = n.prev) for (var r = n.vars; r; r = r.next) if (r.name == t) return !0
        }

        function m(e, t, n, r, i) {
            var a = e.cc;
            for (De.state = e, De.stream = i, De.marked = null, De.cc = a, De.style = t, e.lexical.hasOwnProperty("align") || (e.lexical.align = !0); ;) if ((a.length ? a.pop() : qe ? w : x)(n, r)) {
                for (; a.length && a[a.length - 1].lex;) a.pop()();
                return De.marked ? De.marked : "variable" == n && f(e, r) ? "variable-2" : t
            }
        }

        function p() {
            for (var e = arguments.length - 1; e >= 0; e--) De.cc.push(arguments[e])
        }

        function h() {
            return p.apply(null, arguments), !0
        }

        function g(e) {
            function t(t) {
                for (var n = t; n; n = n.next) if (n.name == e) return !0;
                return !1
            }

            var n = De.state;
            if (De.marked = "def", n.context) {
                if (t(n.localVars)) return;
                n.localVars = {name: e, next: n.localVars}
            } else {
                if (t(n.globalVars)) return;
                r.globalVars && (n.globalVars = {name: e, next: n.globalVars})
            }
        }

        function b() {
            De.state.context = {prev: De.state.context, vars: De.state.localVars}, De.state.localVars = Fe
        }

        function _() {
            De.state.localVars = De.state.context.vars, De.state.context = De.state.context.prev
        }

        function y(e, t) {
            var n = function () {
                var n = De.state, r = n.indented;
                if ("stat" == n.lexical.type) r = n.lexical.indented; else for (var i = n.lexical; i && ")" == i.type && i.align; i = i.prev) r = i.indented;
                n.lexical = new d(r, De.stream.column(), e, null, n.lexical, t)
            };
            return n.lex = !0, n
        }

        function k() {
            var e = De.state;
            e.lexical.prev && (")" == e.lexical.type && (e.indented = e.lexical.indented), e.lexical = e.lexical.prev)
        }

        function v(e) {
            function t(n) {
                return n == e ? h() : ";" == e ? p() : h(t)
            }

            return t
        }

        function x(e, t) {
            return "var" == e ? h(y("vardef", t.length), Q, v(";"), k) : "keyword a" == e ? h(y("form"), E, x, k) : "keyword b" == e ? h(y("form"), x, k) : "{" == e ? h(y("}"), H, k) : ";" == e ? h() : "if" == e ? ("else" == De.state.lexical.info && De.state.cc[De.state.cc.length - 1] == k && De.state.cc.pop()(), h(y("form"), E, x, k, re)) : "function" == e ? h(ce) : "for" == e ? h(y("form"), ie, x, k) : "variable" == e ? Ie && "type" == t ? (De.marked = "keyword", h(V, v("operator"), V, v(";"))) : h(y("stat"), D) : "switch" == e ? h(y("form"), E, v("{"), y("}", "switch"), H, k, k) : "case" == e ? h(w, v(":")) : "default" == e ? h(v(":")) : "catch" == e ? h(y("form"), b, v("("), ue, v(")"), x, k, _) : "class" == e ? h(y("form"), fe, k) : "export" == e ? h(y("stat"), ge, k) : "import" == e ? h(y("stat"), _e, k) : "module" == e ? h(y("form"), J, v("{"), y("}"), H, k, k) : "async" == e ? h(x) : "@" == t ? h(w, x) : p(y("stat"), w, v(";"), k)
        }

        function w(e) {
            return z(e, !1)
        }

        function S(e) {
            return z(e, !0)
        }

        function E(e) {
            return "(" != e ? p() : h(y(")"), w, v(")"), k)
        }

        function z(e, t) {
            if (De.state.fatArrowAt == De.stream.start) {
                var n = t ? $ : j;
                if ("(" == e) return h(b, y(")"), U(J, ")"), k, v("=>"), n, _);
                if ("variable" == e) return p(b, J, v("=>"), n, _)
            }
            var r = t ? q : T;
            return Re.hasOwnProperty(e) ? h(r) : "function" == e ? h(ce, r) : "class" == e ? h(y("form"), de, k) : "keyword c" == e || "async" == e ? h(t ? C : M) : "(" == e ? h(y(")"), M, v(")"), k, r) : "operator" == e || "spread" == e ? h(t ? S : w) : "[" == e ? h(y("]"), we, k, r) : "{" == e ? B(O, "}", null, r) : "quasi" == e ? p(I, r) : "new" == e ? h(P(t)) : h()
        }

        function M(e) {
            return e.match(/[;\}\)\],]/) ? p() : p(w)
        }

        function C(e) {
            return e.match(/[;\}\)\],]/) ? p() : p(S)
        }

        function T(e, t) {
            return "," == e ? h(w) : q(e, t, !1)
        }

        function q(e, t, n) {
            var r = 0 == n ? T : q, i = 0 == n ? w : S;
            return "=>" == e ? h(b, n ? $ : j, _) : "operator" == e ? /\+\+|--/.test(t) ? h(r) : "?" == t ? h(w, v(":"), i) : h(i) : "quasi" == e ? p(I, r) : ";" != e ? "(" == e ? B(S, ")", "call", r) : "." == e ? h(F, r) : "[" == e ? h(y("]"), M, v("]"), k, r) : void 0 : void 0
        }

        function I(e, t) {
            return "quasi" != e ? p() : "${" != t.slice(t.length - 2) ? h(I) : h(w, A)
        }

        function A(e) {
            if ("}" == e) return De.marked = "string-2", De.state.tokenize = c, h(I)
        }

        function j(e) {
            return u(De.stream, De.state), p("{" == e ? x : w)
        }

        function $(e) {
            return u(De.stream, De.state), p("{" == e ? x : S)
        }

        function P(e) {
            return function (t) {
                return "." == t ? h(e ? R : L) : p(e ? S : w)
            }
        }

        function L(e, t) {
            if ("target" == t) return De.marked = "keyword", h(T)
        }

        function R(e, t) {
            if ("target" == t) return De.marked = "keyword", h(q)
        }

        function D(e) {
            return ":" == e ? h(k, x) : p(T, v(";"), k)
        }

        function F(e) {
            if ("variable" == e) return De.marked = "property", h()
        }

        function O(e, t) {
            return "async" == e ? (De.marked = "property", h(O)) : "variable" == e || "keyword" == De.style ? (De.marked = "property", h("get" == t || "set" == t ? W : N)) : "number" == e || "string" == e ? (De.marked = Te ? "property" : De.style + " property", h(N)) : "jsonld-keyword" == e ? h(N) : "modifier" == e ? h(O) : "[" == e ? h(w, v("]"), N) : "spread" == e ? h(w) : ":" == e ? p(N) : void 0
        }

        function W(e) {
            return "variable" != e ? p(N) : (De.marked = "property", h(ce))
        }

        function N(e) {
            return ":" == e ? h(S) : "(" == e ? p(ce) : void 0
        }

        function U(e, t, n) {
            function r(i, a) {
                if (n ? n.indexOf(i) > -1 : "," == i) {
                    var o = De.state.lexical;
                    return "call" == o.info && (o.pos = (o.pos || 0) + 1), h(function (n, r) {
                        return n == t || r == t ? p() : p(e)
                    }, r)
                }
                return i == t || a == t ? h() : h(v(t))
            }

            return function (n, i) {
                return n == t || i == t ? h() : p(e, r)
            }
        }

        function B(e, t, n) {
            for (var r = 3; r < arguments.length; r++) De.cc.push(arguments[r]);
            return h(y(t, n), U(e, t), k)
        }

        function H(e) {
            return "}" == e ? h() : p(x, H)
        }

        function Z(e, t) {
            if (Ie) {
                if (":" == e) return h(V);
                if ("?" == t) return h(Z)
            }
        }

        function V(e) {
            return "variable" == e ? (De.marked = "variable-3", h(X)) : "string" == e || "number" == e || "atom" == e ? h(X) : "{" == e ? h(y("}"), U(K, "}", ",;"), k, X) : "(" == e ? h(U(Y, ")"), G) : void 0
        }

        function G(e) {
            if ("=>" == e) return h(V)
        }

        function K(e, t) {
            return "variable" == e || "keyword" == De.style ? (De.marked = "property", h(K)) : "?" == t ? h(K) : ":" == e ? h(V) : "[" == e ? h(w, Z, v("]"), K) : void 0
        }

        function Y(e) {
            return "variable" == e ? h(Y) : ":" == e ? h(V) : void 0
        }

        function X(e, t) {
            return "<" == t ? h(y(">"), U(V, ">"), k, X) : "|" == t || "." == e ? h(V) : "[" == e ? h(v("]"), X) : "extends" == t ? h(V) : void 0
        }

        function Q() {
            return p(J, Z, te, ne)
        }

        function J(e, t) {
            return "modifier" == e ? h(J) : "variable" == e ? (g(t), h()) : "spread" == e ? h(J) : "[" == e ? B(J, "]") : "{" == e ? B(ee, "}") : void 0
        }

        function ee(e, t) {
            return "variable" != e || De.stream.match(/^\s*:/, !1) ? ("variable" == e && (De.marked = "property"), "spread" == e ? h(J) : "}" == e ? p() : h(v(":"), J, te)) : (g(t), h(te))
        }

        function te(e, t) {
            if ("=" == t) return h(S)
        }

        function ne(e) {
            if ("," == e) return h(Q)
        }

        function re(e, t) {
            if ("keyword b" == e && "else" == t) return h(y("form", "else"), x, k)
        }

        function ie(e) {
            if ("(" == e) return h(y(")"), ae, v(")"), k)
        }

        function ae(e) {
            return "var" == e ? h(Q, v(";"), se) : ";" == e ? h(se) : "variable" == e ? h(oe) : p(w, v(";"), se)
        }

        function oe(e, t) {
            return "in" == t || "of" == t ? (De.marked = "keyword", h(w)) : h(T, se)
        }

        function se(e, t) {
            return ";" == e ? h(le) : "in" == t || "of" == t ? (De.marked = "keyword", h(w)) : p(w, v(";"), le)
        }

        function le(e) {
            ")" != e && h(w)
        }

        function ce(e, t) {
            return "*" == t ? (De.marked = "keyword", h(ce)) : "variable" == e ? (g(t), h(ce)) : "(" == e ? h(b, y(")"), U(ue, ")"), k, Z, x, _) : Ie && "<" == t ? h(y(">"), U(V, ">"), k, ce) : void 0
        }

        function ue(e) {
            return "spread" == e ? h(ue) : p(J, Z, te)
        }

        function de(e, t) {
            return "variable" == e ? fe(e, t) : me(e, t)
        }

        function fe(e, t) {
            if ("variable" == e) return g(t), h(me)
        }

        function me(e, t) {
            return "<" == t ? h(y(">"), U(V, ">"), k, me) : "extends" == t || "implements" == t || Ie && "," == e ? h(Ie ? V : w, me) : "{" == e ? h(y("}"), pe, k) : void 0
        }

        function pe(e, t) {
            return "variable" == e || "keyword" == De.style ? ("async" == t || "static" == t || "get" == t || "set" == t || Ie && ("public" == t || "private" == t || "protected" == t || "readonly" == t || "abstract" == t)) && De.stream.match(/^\s+[\w$\xa1-\uffff]/, !1) ? (De.marked = "keyword", h(pe)) : (De.marked = "property", h(Ie ? he : ce, pe)) : "[" == e ? h(w, v("]"), Ie ? he : ce, pe) : "*" == t ? (De.marked = "keyword", h(pe)) : ";" == e ? h(pe) : "}" == e ? h() : "@" == t ? h(w, pe) : void 0
        }

        function he(e, t) {
            return "?" == t ? h(he) : ":" == e ? h(V, te) : "=" == t ? h(S) : p(ce)
        }

        function ge(e, t) {
            return "*" == t ? (De.marked = "keyword", h(xe, v(";"))) : "default" == t ? (De.marked = "keyword", h(w, v(";"))) : "{" == e ? h(U(be, "}"), xe, v(";")) : p(x)
        }

        function be(e, t) {
            return "as" == t ? (De.marked = "keyword", h(v("variable"))) : "variable" == e ? p(S, be) : void 0
        }

        function _e(e) {
            return "string" == e ? h() : p(ye, ke, xe)
        }

        function ye(e, t) {
            return "{" == e ? B(ye, "}") : ("variable" == e && g(t), "*" == t && (De.marked = "keyword"), h(ve))
        }

        function ke(e) {
            if ("," == e) return h(ye, ke)
        }

        function ve(e, t) {
            if ("as" == t) return De.marked = "keyword", h(ye)
        }

        function xe(e, t) {
            if ("from" == t) return De.marked = "keyword", h(w)
        }

        function we(e) {
            return "]" == e ? h() : p(U(S, "]"))
        }

        function Se(e, t) {
            return "operator" == e.lastType || "," == e.lastType || $e.test(t.charAt(0)) || /[,.]/.test(t.charAt(0))
        }

        var Ee, ze, Me = n.indentUnit, Ce = r.statementIndent, Te = r.jsonld, qe = r.json || Te, Ie = r.typescript,
            Ae = r.wordCharacters || /[\w$\xa1-\uffff]/, je = function () {
                function e(e) {
                    return {type: e, style: "keyword"}
                }

                var t = e("keyword a"), n = e("keyword b"), r = e("keyword c"), i = e("operator"),
                    a = {type: "atom", style: "atom"}, o = {
                        if: e("if"),
                        while: t,
                        with: t,
                        else: n,
                        do: n,
                        try: n,
                        finally: n,
                        return: r,
                        break: r,
                        continue: r,
                        new: e("new"),
                        delete: r,
                        throw: r,
                        debugger: r,
                        var: e("var"),
                        const: e("var"),
                        let: e("var"),
                        function: e("function"),
                        catch: e("catch"),
                        for: e("for"),
                        switch: e("switch"),
                        case: e("case"),
                        default: e("default"),
                        in: i,
                        typeof: i,
                        instanceof: i,
                        true: a,
                        false: a,
                        null: a,
                        undefined: a,
                        NaN: a,
                        Infinity: a,
                        this: e("this"),
                        class: e("class"),
                        super: e("atom"),
                        yield: r,
                        export: e("export"),
                        import: e("import"),
                        extends: r,
                        await: r,
                        async: e("async")
                    };
                if (Ie) {
                    var s = {type: "variable", style: "variable-3"}, l = {
                        interface: e("class"),
                        implements: r,
                        namespace: r,
                        module: e("module"),
                        enum: e("module"),
                        public: e("modifier"),
                        private: e("modifier"),
                        protected: e("modifier"),
                        abstract: e("modifier"),
                        as: i,
                        string: s,
                        number: s,
                        boolean: s,
                        any: s
                    };
                    for (var c in l) o[c] = l[c]
                }
                return o
            }(), $e = /[+\-*&%=<>!?|~^@]/,
            Pe = /^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/, Le = "([{}])",
            Re = {atom: !0, number: !0, variable: !0, string: !0, regexp: !0, this: !0, "jsonld-keyword": !0},
            De = {state: null, column: null, marked: null, cc: null}, Fe = {name: "this", next: {name: "arguments"}};
        return k.lex = !0, {
            startState: function (e) {
                var t = {
                    tokenize: o,
                    lastType: "sof",
                    cc: [],
                    lexical: new d((e || 0) - Me, 0, "block", !1),
                    localVars: r.localVars,
                    context: r.localVars && {vars: r.localVars},
                    indented: e || 0
                };
                return r.globalVars && "object" == typeof r.globalVars && (t.globalVars = r.globalVars), t
            },
            token: function (e, t) {
                if (e.sol() && (t.lexical.hasOwnProperty("align") || (t.lexical.align = !1), t.indented = e.indentation(), u(e, t)), t.tokenize != l && e.eatSpace()) return null;
                var n = t.tokenize(e, t);
                return "comment" == Ee ? n : (t.lastType = "operator" != Ee || "++" != ze && "--" != ze ? Ee : "incdec", m(t, n, Ee, ze, e))
            },
            indent: function (t, n) {
                if (t.tokenize == l) return e.Pass;
                if (t.tokenize != o) return 0;
                var i, a = n && n.charAt(0), s = t.lexical;
                if (!/^\s*else\b/.test(n)) for (var c = t.cc.length - 1; c >= 0; --c) {
                    var u = t.cc[c];
                    if (u == k) s = s.prev; else if (u != re) break
                }
                for (; ("stat" == s.type || "form" == s.type) && ("}" == a || (i = t.cc[t.cc.length - 1]) && (i == T || i == q) && !/^[,\.=+\-*:?[\(]/.test(n));) s = s.prev;
                Ce && ")" == s.type && "stat" == s.prev.type && (s = s.prev);
                var d = s.type, f = a == d;
                return "vardef" == d ? s.indented + ("operator" == t.lastType || "," == t.lastType ? s.info + 1 : 0) : "form" == d && "{" == a ? s.indented : "form" == d ? s.indented + Me : "stat" == d ? s.indented + (Se(t, n) ? Ce || Me : 0) : "switch" != s.info || f || 0 == r.doubleIndentSwitch ? s.align ? s.column + (f ? 0 : 1) : s.indented + (f ? 0 : Me) : s.indented + (/^(?:case|default)\b/.test(n) ? Me : 2 * Me)
            },
            electricInput: /^\s*(?:case .*?:|default:|\{|\})$/,
            blockCommentStart: qe ? null : "/*",
            blockCommentEnd: qe ? null : "*/",
            lineComment: qe ? null : "//",
            fold: "brace",
            closeBrackets: "()[]{}''\"\"``",
            helperType: qe ? "json" : "javascript",
            jsonldMode: Te,
            jsonMode: qe,
            expressionAllowed: t,
            skipExpression: function (e) {
                var t = e.cc[e.cc.length - 1];
                t != w && t != S || e.cc.pop()
            }
        }
    }), e.registerHelper("wordChars", "javascript", /[\w$]/), e.defineMIME("text/javascript", "javascript"), e.defineMIME("text/ecmascript", "javascript"), e.defineMIME("application/javascript", "javascript"), e.defineMIME("application/x-javascript", "javascript"), e.defineMIME("application/ecmascript", "javascript"), e.defineMIME("application/json", {
        name: "javascript",
        json: !0
    }), e.defineMIME("application/x-json", {
        name: "javascript",
        json: !0
    }), e.defineMIME("application/ld+json", {
        name: "javascript",
        jsonld: !0
    }), e.defineMIME("text/typescript", {
        name: "javascript",
        typescript: !0
    }), e.defineMIME("application/typescript", {name: "javascript", typescript: !0})
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";
    e.defineMode("clojure", function (e) {
        function t(e) {
            for (var t = {}, n = e.split(" "), r = 0; r < n.length; ++r) t[n[r]] = !0;
            return t
        }

        function n(e, t, n) {
            this.indent = e, this.type = t, this.prev = n
        }

        function r(e, t, r) {
            e.indentStack = new n(t, r, e.indentStack)
        }

        function i(e) {
            e.indentStack = e.indentStack.prev
        }

        function a(e, t) {
            return "0" === e && t.eat(/x/i) ? (t.eatWhile(m.hex), !0) : ("+" != e && "-" != e || !m.digit.test(t.peek()) || (t.eat(m.sign), e = t.next()), !!m.digit.test(e) && (t.eat(e), t.eatWhile(m.digit), "." == t.peek() ? (t.eat("."), t.eatWhile(m.digit)) : "/" == t.peek() && (t.eat("/"), t.eatWhile(m.digit)), t.eat(m.exponent) && (t.eat(m.sign), t.eatWhile(m.digit)), !0))
        }

        function o(e) {
            var t = e.next();
            t && t.match(/[a-z]/) && e.match(/[a-z]+/, !0) || "u" === t && e.match(/[0-9a-z]{4}/i, !0)
        }

        var s = e.indentUnit || 2, l = e.indentUnit || 2, c = t("true false nil"),
            u = t("defn defn- def def- defonce defmulti defmethod defmacro defstruct deftype defprotocol defrecord defproject deftest slice defalias defhinted defmacro- defn-memo defnk defnk defonce- defunbound defunbound- defvar defvar- let letfn do case cond condp for loop recur when when-not when-let when-first if if-let if-not . .. -> ->> doto and or dosync doseq dotimes dorun doall load import unimport ns in-ns refer try catch finally throw with-open with-local-vars binding gen-class gen-and-load-class gen-and-save-class handler-case handle"),
            d = t("* *' *1 *2 *3 *agent* *allow-unresolved-vars* *assert* *clojure-version* *command-line-args* *compile-files* *compile-path* *compiler-options* *data-readers* *e *err* *file* *flush-on-newline* *fn-loader* *in* *math-context* *ns* *out* *print-dup* *print-length* *print-level* *print-meta* *print-readably* *read-eval* *source-path* *unchecked-math* *use-context-classloader* *verbose-defrecords* *warn-on-reflection* + +' - -' -> ->> ->ArrayChunk ->Vec ->VecNode ->VecSeq -cache-protocol-fn -reset-methods .. / < <= = == > >= EMPTY-NODE accessor aclone add-classpath add-watch agent agent-error agent-errors aget alength alias all-ns alter alter-meta! alter-var-root amap ancestors and apply areduce array-map aset aset-boolean aset-byte aset-char aset-double aset-float aset-int aset-long aset-short assert assoc assoc! assoc-in associative? atom await await-for await1 bases bean bigdec bigint biginteger binding bit-and bit-and-not bit-clear bit-flip bit-not bit-or bit-set bit-shift-left bit-shift-right bit-test bit-xor boolean boolean-array booleans bound-fn bound-fn* bound? butlast byte byte-array bytes case cat cast char char-array char-escape-string char-name-string char? chars chunk chunk-append chunk-buffer chunk-cons chunk-first chunk-next chunk-rest chunked-seq? class class? clear-agent-errors clojure-version coll? comment commute comp comparator compare compare-and-set! compile complement completing concat cond condp conj conj! cons constantly construct-proxy contains? count counted? create-ns create-struct cycle dec dec' decimal? declare dedupe default-data-readers definline definterface defmacro defmethod defmulti defn defn- defonce defprotocol defrecord defstruct deftype delay delay? deliver denominator deref derive descendants destructure disj disj! dissoc dissoc! distinct distinct? doall dorun doseq dosync dotimes doto double double-array doubles drop drop-last drop-while eduction empty empty? ensure enumeration-seq error-handler error-mode eval even? every-pred every? ex-data ex-info extend extend-protocol extend-type extenders extends? false? ffirst file-seq filter filterv find find-keyword find-ns find-protocol-impl find-protocol-method find-var first flatten float float-array float? floats flush fn fn? fnext fnil for force format frequencies future future-call future-cancel future-cancelled? future-done? future? gen-class gen-interface gensym get get-in get-method get-proxy-class get-thread-bindings get-validator group-by hash hash-combine hash-map hash-set identical? identity if-let if-not ifn? import in-ns inc inc' init-proxy instance? int int-array integer? interleave intern interpose into into-array ints io! isa? iterate iterator-seq juxt keep keep-indexed key keys keyword keyword? last lazy-cat lazy-seq let letfn line-seq list list* list? load load-file load-reader load-string loaded-libs locking long long-array longs loop macroexpand macroexpand-1 make-array make-hierarchy map map-indexed map? mapcat mapv max max-key memfn memoize merge merge-with meta method-sig methods min min-key mod munge name namespace namespace-munge neg? newline next nfirst nil? nnext not not-any? not-empty not-every? not= ns ns-aliases ns-imports ns-interns ns-map ns-name ns-publics ns-refers ns-resolve ns-unalias ns-unmap nth nthnext nthrest num number? numerator object-array odd? or parents partial partition partition-all partition-by pcalls peek persistent! pmap pop pop! pop-thread-bindings pos? pr pr-str prefer-method prefers primitives-classnames print print-ctor print-dup print-method print-simple print-str printf println println-str prn prn-str promise proxy proxy-call-with-super proxy-mappings proxy-name proxy-super push-thread-bindings pvalues quot rand rand-int rand-nth random-sample range ratio? rational? rationalize re-find re-groups re-matcher re-matches re-pattern re-seq read read-line read-string realized? reduce reduce-kv reductions ref ref-history-count ref-max-history ref-min-history ref-set refer refer-clojure reify release-pending-sends rem remove remove-all-methods remove-method remove-ns remove-watch repeat repeatedly replace replicate require reset! reset-meta! resolve rest restart-agent resultset-seq reverse reversible? rseq rsubseq satisfies? second select-keys send send-off seq seq? seque sequence sequential? set set-error-handler! set-error-mode! set-validator! set? short short-array shorts shuffle shutdown-agents slurp some some-fn sort sort-by sorted-map sorted-map-by sorted-set sorted-set-by sorted? special-symbol? spit split-at split-with str string? struct struct-map subs subseq subvec supers swap! symbol symbol? sync take take-last take-nth take-while test the-ns thread-bound? time to-array to-array-2d trampoline transduce transient tree-seq true? type unchecked-add unchecked-add-int unchecked-byte unchecked-char unchecked-dec unchecked-dec-int unchecked-divide-int unchecked-double unchecked-float unchecked-inc unchecked-inc-int unchecked-int unchecked-long unchecked-multiply unchecked-multiply-int unchecked-negate unchecked-negate-int unchecked-remainder-int unchecked-short unchecked-subtract unchecked-subtract-int underive unquote unquote-splicing update update-in update-proxy use val vals var-get var-set var? vary-meta vec vector vector-of vector? volatile! volatile? vreset! vswap! when when-first when-let when-not while with-bindings with-bindings* with-in-str with-loading-context with-local-vars with-meta with-open with-out-str with-precision with-redefs with-redefs-fn xml-seq zero? zipmap *default-data-reader-fn* as-> cond-> cond->> reduced reduced? send-via set-agent-send-executor! set-agent-send-off-executor! some-> some->>"),
            f = t("ns fn def defn defmethod bound-fn if if-not case condp when while when-not when-first do future comment doto locking proxy with-open with-precision reify deftype defrecord defprotocol extend extend-protocol extend-type try catch let letfn binding loop for doseq dotimes when-let if-let defstruct struct-map assoc testing deftest handler-case handle dotrace deftrace"),
            m = {
                digit: /\d/,
                digit_or_colon: /[\d:]/,
                hex: /[0-9a-f]/i,
                sign: /[+-]/,
                exponent: /e/i,
                keyword_char: /[^\s\(\[\;\)\]]/,
                symbol: /[\w*+!\-\._?:<>\/\xa1-\uffff]/,
                block_indent: /^(?:def|with)[^\/]+$|\/(?:def|with)/
            };
        return {
            startState: function () {
                return {indentStack: null, indentation: 0, mode: !1}
            }, token: function (e, t) {
                if (null == t.indentStack && e.sol() && (t.indentation = e.indentation()), "string" != t.mode && e.eatSpace()) return null;
                var n = null;
                switch (t.mode) {
                    case "string":
                        for (var p, h = !1; null != (p = e.next());) {
                            if ('"' == p && !h) {
                                t.mode = !1;
                                break
                            }
                            h = !h && "\\" == p
                        }
                        n = "string";
                        break;
                    default:
                        var g = e.next();
                        if ('"' == g) t.mode = "string", n = "string"; else if ("\\" == g) o(e), n = "string-2"; else if ("'" != g || m.digit_or_colon.test(e.peek())) if (";" == g) e.skipToEnd(), n = "comment"; else if (a(g, e)) n = "number"; else if ("(" == g || "[" == g || "{" == g) {
                            var b, _ = "", y = e.column();
                            if ("(" == g) for (; null != (b = e.eat(m.keyword_char));) _ += b;
                            _.length > 0 && (f.propertyIsEnumerable(_) || m.block_indent.test(_)) ? r(t, y + s, g) : (e.eatSpace(), e.eol() || ";" == e.peek() ? r(t, y + l, g) : r(t, y + e.current().length, g)), e.backUp(e.current().length - 1), n = "bracket"
                        } else if (")" == g || "]" == g || "}" == g) n = "bracket", null != t.indentStack && t.indentStack.type == (")" == g ? "(" : "]" == g ? "[" : "{") && i(t); else {
                            if (":" == g) return e.eatWhile(m.symbol), "atom";
                            e.eatWhile(m.symbol), n = u && u.propertyIsEnumerable(e.current()) ? "keyword" : d && d.propertyIsEnumerable(e.current()) ? "builtin" : c && c.propertyIsEnumerable(e.current()) ? "atom" : "variable"
                        } else n = "atom"
                }
                return n
            }, indent: function (e) {
                return null == e.indentStack ? e.indentation : e.indentStack.indent
            }, closeBrackets: {pairs: '()[]{}""'}, lineComment: ";;"
        }
    }), e.defineMIME("text/x-clojure", "clojure"), e.defineMIME("text/x-clojurescript", "clojure"), e.defineMIME("application/edn", "clojure")
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";
    e.defineMode("coffeescript", function (e, t) {
        function n(e) {
            return new RegExp("^((" + e.join(")|(") + "))\\b")
        }

        function r(e, t) {
            if (e.sol()) {
                null === t.scope.align && (t.scope.align = !1);
                var n = t.scope.offset;
                if (e.eatSpace()) {
                    var r = e.indentation();
                    return r > n && "coffee" == t.scope.type ? "indent" : r < n ? "dedent" : null
                }
                n > 0 && s(e, t)
            }
            if (e.eatSpace()) return null;
            var o = e.peek();
            if (e.match("####")) return e.skipToEnd(), "comment";
            if (e.match("###")) return t.tokenize = a, t.tokenize(e, t);
            if ("#" === o) return e.skipToEnd(), "comment";
            if (e.match(/^-?[0-9\.]/, !1)) {
                var l = !1;
                if (e.match(/^-?\d*\.\d+(e[\+\-]?\d+)?/i) && (l = !0), e.match(/^-?\d+\.\d*/) && (l = !0), e.match(/^-?\.\d+/) && (l = !0), l) return "." == e.peek() && e.backUp(1), "number";
                var h = !1;
                if (e.match(/^-?0x[0-9a-f]+/i) && (h = !0), e.match(/^-?[1-9]\d*(e[\+\-]?\d+)?/) && (h = !0), e.match(/^-?0(?![\dx])/i) && (h = !0), h) return "number"
            }
            if (e.match(_)) return t.tokenize = i(e.current(), !1, "string"), t.tokenize(e, t);
            if (e.match(y)) {
                if ("/" != e.current() || e.match(/^.*\//, !1)) return t.tokenize = i(e.current(), !0, "string-2"), t.tokenize(e, t);
                e.backUp(1)
            }
            return e.match(u) || e.match(p) ? "operator" : e.match(d) ? "punctuation" : e.match(k) ? "atom" : e.match(m) || t.prop && e.match(f) ? "property" : e.match(b) ? "keyword" : e.match(f) ? "variable" : (e.next(), c)
        }

        function i(e, n, i) {
            return function (a, o) {
                for (; !a.eol();) if (a.eatWhile(/[^'"\/\\]/), a.eat("\\")) {
                    if (a.next(), n && a.eol()) return i
                } else {
                    if (a.match(e)) return o.tokenize = r, i;
                    a.eat(/['"\/]/)
                }
                return n && (t.singleLineStringErrors ? i = c : o.tokenize = r), i
            }
        }

        function a(e, t) {
            for (; !e.eol();) {
                if (e.eatWhile(/[^#]/), e.match("###")) {
                    t.tokenize = r;
                    break
                }
                e.eatWhile("#")
            }
            return "comment"
        }

        function o(t, n, r) {
            r = r || "coffee";
            for (var i = 0, a = !1, o = null, s = n.scope; s; s = s.prev) if ("coffee" === s.type || "}" == s.type) {
                i = s.offset + e.indentUnit;
                break
            }
            "coffee" !== r ? (a = null, o = t.column() + t.current().length) : n.scope.align && (n.scope.align = !1), n.scope = {
                offset: i,
                type: r,
                prev: n.scope,
                align: a,
                alignOffset: o
            }
        }

        function s(e, t) {
            if (t.scope.prev) {
                if ("coffee" === t.scope.type) {
                    for (var n = e.indentation(), r = !1, i = t.scope; i; i = i.prev) if (n === i.offset) {
                        r = !0;
                        break
                    }
                    if (!r) return !0;
                    for (; t.scope.prev && t.scope.offset !== n;) t.scope = t.scope.prev;
                    return !1
                }
                return t.scope = t.scope.prev, !1
            }
        }

        function l(e, t) {
            var n = t.tokenize(e, t), r = e.current();
            "return" === r && (t.dedent = !0), (("->" === r || "=>" === r) && e.eol() || "indent" === n) && o(e, t);
            var i = "[({".indexOf(r);
            if (-1 !== i && o(e, t, "])}".slice(i, i + 1)), h.exec(r) && o(e, t), "then" == r && s(e, t), "dedent" === n && s(e, t)) return c;
            if (-1 !== (i = "])}".indexOf(r))) {
                for (; "coffee" == t.scope.type && t.scope.prev;) t.scope = t.scope.prev;
                t.scope.type == r && (t.scope = t.scope.prev)
            }
            return t.dedent && e.eol() && ("coffee" == t.scope.type && t.scope.prev && (t.scope = t.scope.prev), t.dedent = !1), n
        }

        var c = "error",
            u = /^(?:->|=>|\+[+=]?|-[\-=]?|\*[\*=]?|\/[\/=]?|[=!]=|<[><]?=?|>>?=?|%=?|&=?|\|=?|\^=?|\~|!|\?|(or|and|\|\||&&|\?)=)/,
            d = /^(?:[()\[\]{},:`=;]|\.\.?\.?)/, f = /^[_A-Za-z$][_A-Za-z$0-9]*/, m = /^@[_A-Za-z$][_A-Za-z$0-9]*/,
            p = n(["and", "or", "not", "is", "isnt", "in", "instanceof", "typeof"]),
            h = ["for", "while", "loop", "if", "unless", "else", "switch", "try", "catch", "finally", "class"],
            g = ["break", "by", "continue", "debugger", "delete", "do", "in", "of", "new", "return", "then", "this", "@", "throw", "when", "until", "extends"],
            b = n(h.concat(g));
        h = n(h);
        var _ = /^('{3}|\"{3}|['\"])/, y = /^(\/{3}|\/)/,
            k = n(["Infinity", "NaN", "undefined", "null", "true", "false", "on", "off", "yes", "no"]);
        return {
            startState: function (e) {
                return {
                    tokenize: r,
                    scope: {offset: e || 0, type: "coffee", prev: null, align: !1},
                    prop: !1,
                    dedent: 0
                }
            }, token: function (e, t) {
                var n = null === t.scope.align && t.scope;
                n && e.sol() && (n.align = !1);
                var r = l(e, t);
                return r && "comment" != r && (n && (n.align = !0), t.prop = "punctuation" == r && "." == e.current()), r
            }, indent: function (e, t) {
                if (e.tokenize != r) return 0;
                var n = e.scope, i = t && "])}".indexOf(t.charAt(0)) > -1;
                if (i) for (; "coffee" == n.type && n.prev;) n = n.prev;
                var a = i && n.type === t.charAt(0);
                return n.align ? n.alignOffset - (a ? 1 : 0) : (a ? n.prev : n).offset
            }, lineComment: "#", fold: "indent"
        }
    }), e.defineMIME("text/x-coffeescript", "coffeescript"), e.defineMIME("text/coffeescript", "coffeescript")
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";

    function t(e) {
        for (var t = {}, n = 0; n < e.length; ++n) t[e[n].toLowerCase()] = !0;
        return t
    }

    function n(e, t) {
        for (var n, r = !1; null != (n = e.next());) {
            if (r && "/" == n) {
                t.tokenize = null;
                break
            }
            r = "*" == n
        }
        return ["comment", "comment"]
    }

    e.defineMode("css", function (t, n) {
        function r(e, t) {
            return p = t, e
        }

        function i(e, t) {
            var n = e.next();
            if (b[n]) {
                var i = b[n](e, t);
                if (!1 !== i) return i
            }
            return "@" == n ? (e.eatWhile(/[\w\\\-]/), r("def", e.current())) : "=" == n || ("~" == n || "|" == n) && e.eat("=") ? r(null, "compare") : '"' == n || "'" == n ? (t.tokenize = a(n), t.tokenize(e, t)) : "#" == n ? (e.eatWhile(/[\w\\\-]/), r("atom", "hash")) : "!" == n ? (e.match(/^\s*\w*/), r("keyword", "important")) : /\d/.test(n) || "." == n && e.eat(/\d/) ? (e.eatWhile(/[\w.%]/), r("number", "unit")) : "-" !== n ? /[,+>*\/]/.test(n) ? r(null, "select-op") : "." == n && e.match(/^-?[_a-z][_a-z0-9-]*/i) ? r("qualifier", "qualifier") : /[:;{}\[\]\(\)]/.test(n) ? r(null, n) : "u" == n && e.match(/rl(-prefix)?\(/) || "d" == n && e.match("omain(") || "r" == n && e.match("egexp(") ? (e.backUp(1), t.tokenize = o, r("property", "word")) : /[\w\\\-]/.test(n) ? (e.eatWhile(/[\w\\\-]/), r("property", "word")) : r(null, null) : /[\d.]/.test(e.peek()) ? (e.eatWhile(/[\w.%]/), r("number", "unit")) : e.match(/^-[\w\\\-]+/) ? (e.eatWhile(/[\w\\\-]/), e.match(/^\s*:/, !1) ? r("variable-2", "variable-definition") : r("variable-2", "variable")) : e.match(/^\w+-/) ? r("meta", "meta") : void 0
        }

        function a(e) {
            return function (t, n) {
                for (var i, a = !1; null != (i = t.next());) {
                    if (i == e && !a) {
                        ")" == e && t.backUp(1);
                        break
                    }
                    a = !a && "\\" == i
                }
                return (i == e || !a && ")" != e) && (n.tokenize = null), r("string", "string")
            }
        }

        function o(e, t) {
            return e.next(), e.match(/\s*[\"\')]/, !1) ? t.tokenize = null : t.tokenize = a(")"), r(null, "(")
        }

        function s(e, t, n) {
            this.type = e, this.indent = t, this.prev = n
        }

        function l(e, t, n, r) {
            return e.context = new s(n, t.indentation() + (!1 === r ? 0 : g), e.context), n
        }

        function c(e) {
            return e.context.prev && (e.context = e.context.prev), e.context.type
        }

        function u(e, t, n) {
            return I[n.context.type](e, t, n)
        }

        function d(e, t, n, r) {
            for (var i = r || 1; i > 0; i--) n.context = n.context.prev;
            return u(e, t, n)
        }

        function f(e) {
            var t = e.current().toLowerCase();
            h = M.hasOwnProperty(t) ? "atom" : z.hasOwnProperty(t) ? "keyword" : "variable"
        }

        var m = n.inline;
        n.propertyKeywords || (n = e.resolveMode("text/css"));
        var p, h, g = t.indentUnit, b = n.tokenHooks, _ = n.documentTypes || {}, y = n.mediaTypes || {},
            k = n.mediaFeatures || {}, v = n.mediaValueKeywords || {}, x = n.propertyKeywords || {},
            w = n.nonStandardPropertyKeywords || {}, S = n.fontProperties || {}, E = n.counterDescriptors || {},
            z = n.colorKeywords || {}, M = n.valueKeywords || {}, C = n.allowNested, T = n.lineComment,
            q = !0 === n.supportsAtComponent, I = {};
        return I.top = function (e, t, n) {
            if ("{" == e) return l(n, t, "block");
            if ("}" == e && n.context.prev) return c(n);
            if (q && /@component/.test(e)) return l(n, t, "atComponentBlock");
            if (/^@(-moz-)?document$/.test(e)) return l(n, t, "documentTypes");
            if (/^@(media|supports|(-moz-)?document|import)$/.test(e)) return l(n, t, "atBlock");
            if (/^@(font-face|counter-style)/.test(e)) return n.stateArg = e, "restricted_atBlock_before";
            if (/^@(-(moz|ms|o|webkit)-)?keyframes$/.test(e)) return "keyframes";
            if (e && "@" == e.charAt(0)) return l(n, t, "at");
            if ("hash" == e) h = "builtin"; else if ("word" == e) h = "tag"; else {
                if ("variable-definition" == e) return "maybeprop";
                if ("interpolation" == e) return l(n, t, "interpolation");
                if (":" == e) return "pseudo";
                if (C && "(" == e) return l(n, t, "parens")
            }
            return n.context.type
        }, I.block = function (e, t, n) {
            if ("word" == e) {
                var r = t.current().toLowerCase();
                return x.hasOwnProperty(r) ? (h = "property", "maybeprop") : w.hasOwnProperty(r) ? (h = "string-2", "maybeprop") : C ? (h = t.match(/^\s*:(?:\s|$)/, !1) ? "property" : "tag", "block") : (h += " error", "maybeprop")
            }
            return "meta" == e ? "block" : C || "hash" != e && "qualifier" != e ? I.top(e, t, n) : (h = "error", "block")
        }, I.maybeprop = function (e, t, n) {
            return ":" == e ? l(n, t, "prop") : u(e, t, n)
        }, I.prop = function (e, t, n) {
            if (";" == e) return c(n);
            if ("{" == e && C) return l(n, t, "propBlock");
            if ("}" == e || "{" == e) return d(e, t, n);
            if ("(" == e) return l(n, t, "parens");
            if ("hash" != e || /^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(t.current())) {
                if ("word" == e) f(t); else if ("interpolation" == e) return l(n, t, "interpolation")
            } else h += " error";
            return "prop"
        }, I.propBlock = function (e, t, n) {
            return "}" == e ? c(n) : "word" == e ? (h = "property", "maybeprop") : n.context.type
        }, I.parens = function (e, t, n) {
            return "{" == e || "}" == e ? d(e, t, n) : ")" == e ? c(n) : "(" == e ? l(n, t, "parens") : "interpolation" == e ? l(n, t, "interpolation") : ("word" == e && f(t), "parens")
        }, I.pseudo = function (e, t, n) {
            return "meta" == e ? "pseudo" : "word" == e ? (h = "variable-3", n.context.type) : u(e, t, n)
        }, I.documentTypes = function (e, t, n) {
            return "word" == e && _.hasOwnProperty(t.current()) ? (h = "tag", n.context.type) : I.atBlock(e, t, n)
        }, I.atBlock = function (e, t, n) {
            if ("(" == e) return l(n, t, "atBlock_parens");
            if ("}" == e || ";" == e) return d(e, t, n);
            if ("{" == e) return c(n) && l(n, t, C ? "block" : "top");
            if ("interpolation" == e) return l(n, t, "interpolation");
            if ("word" == e) {
                var r = t.current().toLowerCase();
                h = "only" == r || "not" == r || "and" == r || "or" == r ? "keyword" : y.hasOwnProperty(r) ? "attribute" : k.hasOwnProperty(r) ? "property" : v.hasOwnProperty(r) ? "keyword" : x.hasOwnProperty(r) ? "property" : w.hasOwnProperty(r) ? "string-2" : M.hasOwnProperty(r) ? "atom" : z.hasOwnProperty(r) ? "keyword" : "error"
            }
            return n.context.type
        }, I.atComponentBlock = function (e, t, n) {
            return "}" == e ? d(e, t, n) : "{" == e ? c(n) && l(n, t, C ? "block" : "top", !1) : ("word" == e && (h = "error"), n.context.type)
        }, I.atBlock_parens = function (e, t, n) {
            return ")" == e ? c(n) : "{" == e || "}" == e ? d(e, t, n, 2) : I.atBlock(e, t, n)
        }, I.restricted_atBlock_before = function (e, t, n) {
            return "{" == e ? l(n, t, "restricted_atBlock") : "word" == e && "@counter-style" == n.stateArg ? (h = "variable", "restricted_atBlock_before") : u(e, t, n)
        }, I.restricted_atBlock = function (e, t, n) {
            return "}" == e ? (n.stateArg = null, c(n)) : "word" == e ? (h = "@font-face" == n.stateArg && !S.hasOwnProperty(t.current().toLowerCase()) || "@counter-style" == n.stateArg && !E.hasOwnProperty(t.current().toLowerCase()) ? "error" : "property", "maybeprop") : "restricted_atBlock"
        }, I.keyframes = function (e, t, n) {
            return "word" == e ? (h = "variable", "keyframes") : "{" == e ? l(n, t, "top") : u(e, t, n)
        }, I.at = function (e, t, n) {
            return ";" == e ? c(n) : "{" == e || "}" == e ? d(e, t, n) : ("word" == e ? h = "tag" : "hash" == e && (h = "builtin"), "at")
        }, I.interpolation = function (e, t, n) {
            return "}" == e ? c(n) : "{" == e || ";" == e ? d(e, t, n) : ("word" == e ? h = "variable" : "variable" != e && "(" != e && ")" != e && (h = "error"), "interpolation")
        }, {
            startState: function (e) {
                return {
                    tokenize: null,
                    state: m ? "block" : "top",
                    stateArg: null,
                    context: new s(m ? "block" : "top", e || 0, null)
                }
            }, token: function (e, t) {
                if (!t.tokenize && e.eatSpace()) return null;
                var n = (t.tokenize || i)(e, t);
                return n && "object" == typeof n && (p = n[1], n = n[0]), h = n, t.state = I[t.state](p, e, t), h
            }, indent: function (e, t) {
                var n = e.context, r = t && t.charAt(0), i = n.indent;
                return "prop" != n.type || "}" != r && ")" != r || (n = n.prev), n.prev && ("}" != r || "block" != n.type && "top" != n.type && "interpolation" != n.type && "restricted_atBlock" != n.type ? (")" != r || "parens" != n.type && "atBlock_parens" != n.type) && ("{" != r || "at" != n.type && "atBlock" != n.type) || (i = Math.max(0, n.indent - g)) : i = (n = n.prev).indent), i
            }, electricChars: "}", blockCommentStart: "/*", blockCommentEnd: "*/", lineComment: T, fold: "brace"
        }
    });
    var r = ["domain", "regexp", "url", "url-prefix"], i = t(r),
        a = ["all", "aural", "braille", "handheld", "print", "projection", "screen", "tty", "tv", "embossed"], o = t(a),
        s = ["width", "min-width", "max-width", "height", "min-height", "max-height", "device-width", "min-device-width", "max-device-width", "device-height", "min-device-height", "max-device-height", "aspect-ratio", "min-aspect-ratio", "max-aspect-ratio", "device-aspect-ratio", "min-device-aspect-ratio", "max-device-aspect-ratio", "color", "min-color", "max-color", "color-index", "min-color-index", "max-color-index", "monochrome", "min-monochrome", "max-monochrome", "resolution", "min-resolution", "max-resolution", "scan", "grid", "orientation", "device-pixel-ratio", "min-device-pixel-ratio", "max-device-pixel-ratio", "pointer", "any-pointer", "hover", "any-hover"],
        l = t(s),
        c = ["landscape", "portrait", "none", "coarse", "fine", "on-demand", "hover", "interlace", "progressive"],
        u = t(c),
        d = ["align-content", "align-items", "align-self", "alignment-adjust", "alignment-baseline", "anchor-point", "animation", "animation-delay", "animation-direction", "animation-duration", "animation-fill-mode", "animation-iteration-count", "animation-name", "animation-play-state", "animation-timing-function", "appearance", "azimuth", "backface-visibility", "background", "background-attachment", "background-blend-mode", "background-clip", "background-color", "background-image", "background-origin", "background-position", "background-repeat", "background-size", "baseline-shift", "binding", "bleed", "bookmark-label", "bookmark-level", "bookmark-state", "bookmark-target", "border", "border-bottom", "border-bottom-color", "border-bottom-left-radius", "border-bottom-right-radius", "border-bottom-style", "border-bottom-width", "border-collapse", "border-color", "border-image", "border-image-outset", "border-image-repeat", "border-image-slice", "border-image-source", "border-image-width", "border-left", "border-left-color", "border-left-style", "border-left-width", "border-radius", "border-right", "border-right-color", "border-right-style", "border-right-width", "border-spacing", "border-style", "border-top", "border-top-color", "border-top-left-radius", "border-top-right-radius", "border-top-style", "border-top-width", "border-width", "bottom", "box-decoration-break", "box-shadow", "box-sizing", "break-after", "break-before", "break-inside", "caption-side", "caret-color", "clear", "clip", "color", "color-profile", "column-count", "column-fill", "column-gap", "column-rule", "column-rule-color", "column-rule-style", "column-rule-width", "column-span", "column-width", "columns", "content", "counter-increment", "counter-reset", "crop", "cue", "cue-after", "cue-before", "cursor", "direction", "display", "dominant-baseline", "drop-initial-after-adjust", "drop-initial-after-align", "drop-initial-before-adjust", "drop-initial-before-align", "drop-initial-size", "drop-initial-value", "elevation", "empty-cells", "fit", "fit-position", "flex", "flex-basis", "flex-direction", "flex-flow", "flex-grow", "flex-shrink", "flex-wrap", "float", "float-offset", "flow-from", "flow-into", "font", "font-feature-settings", "font-family", "font-kerning", "font-language-override", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-synthesis", "font-variant", "font-variant-alternates", "font-variant-caps", "font-variant-east-asian", "font-variant-ligatures", "font-variant-numeric", "font-variant-position", "font-weight", "grid", "grid-area", "grid-auto-columns", "grid-auto-flow", "grid-auto-rows", "grid-column", "grid-column-end", "grid-column-gap", "grid-column-start", "grid-gap", "grid-row", "grid-row-end", "grid-row-gap", "grid-row-start", "grid-template", "grid-template-areas", "grid-template-columns", "grid-template-rows", "hanging-punctuation", "height", "hyphens", "icon", "image-orientation", "image-rendering", "image-resolution", "inline-box-align", "justify-content", "justify-items", "justify-self", "left", "letter-spacing", "line-break", "line-height", "line-stacking", "line-stacking-ruby", "line-stacking-shift", "line-stacking-strategy", "list-style", "list-style-image", "list-style-position", "list-style-type", "margin", "margin-bottom", "margin-left", "margin-right", "margin-top", "marks", "marquee-direction", "marquee-loop", "marquee-play-count", "marquee-speed", "marquee-style", "max-height", "max-width", "min-height", "min-width", "move-to", "nav-down", "nav-index", "nav-left", "nav-right", "nav-up", "object-fit", "object-position", "opacity", "order", "orphans", "outline", "outline-color", "outline-offset", "outline-style", "outline-width", "overflow", "overflow-style", "overflow-wrap", "overflow-x", "overflow-y", "padding", "padding-bottom", "padding-left", "padding-right", "padding-top", "page", "page-break-after", "page-break-before", "page-break-inside", "page-policy", "pause", "pause-after", "pause-before", "perspective", "perspective-origin", "pitch", "pitch-range", "place-content", "place-items", "place-self", "play-during", "position", "presentation-level", "punctuation-trim", "quotes", "region-break-after", "region-break-before", "region-break-inside", "region-fragment", "rendering-intent", "resize", "rest", "rest-after", "rest-before", "richness", "right", "rotation", "rotation-point", "ruby-align", "ruby-overhang", "ruby-position", "ruby-span", "shape-image-threshold", "shape-inside", "shape-margin", "shape-outside", "size", "speak", "speak-as", "speak-header", "speak-numeral", "speak-punctuation", "speech-rate", "stress", "string-set", "tab-size", "table-layout", "target", "target-name", "target-new", "target-position", "text-align", "text-align-last", "text-decoration", "text-decoration-color", "text-decoration-line", "text-decoration-skip", "text-decoration-style", "text-emphasis", "text-emphasis-color", "text-emphasis-position", "text-emphasis-style", "text-height", "text-indent", "text-justify", "text-outline", "text-overflow", "text-shadow", "text-size-adjust", "text-space-collapse", "text-transform", "text-underline-position", "text-wrap", "top", "transform", "transform-origin", "transform-style", "transition", "transition-delay", "transition-duration", "transition-property", "transition-timing-function", "unicode-bidi", "user-select", "vertical-align", "visibility", "voice-balance", "voice-duration", "voice-family", "voice-pitch", "voice-range", "voice-rate", "voice-stress", "voice-volume", "volume", "white-space", "widows", "width", "will-change", "word-break", "word-spacing", "word-wrap", "z-index", "clip-path", "clip-rule", "mask", "enable-background", "filter", "flood-color", "flood-opacity", "lighting-color", "stop-color", "stop-opacity", "pointer-events", "color-interpolation", "color-interpolation-filters", "color-rendering", "fill", "fill-opacity", "fill-rule", "image-rendering", "marker", "marker-end", "marker-mid", "marker-start", "shape-rendering", "stroke", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke-width", "text-rendering", "baseline-shift", "dominant-baseline", "glyph-orientation-horizontal", "glyph-orientation-vertical", "text-anchor", "writing-mode"],
        f = t(d),
        m = ["scrollbar-arrow-color", "scrollbar-base-color", "scrollbar-dark-shadow-color", "scrollbar-face-color", "scrollbar-highlight-color", "scrollbar-shadow-color", "scrollbar-3d-light-color", "scrollbar-track-color", "shape-inside", "searchfield-cancel-button", "searchfield-decoration", "searchfield-results-button", "searchfield-results-decoration", "zoom"],
        p = t(m),
        h = t(["font-family", "src", "unicode-range", "font-variant", "font-feature-settings", "font-stretch", "font-weight", "font-style"]),
        g = t(["additive-symbols", "fallback", "negative", "pad", "prefix", "range", "speak-as", "suffix", "symbols", "system"]),
        b = ["aliceblue", "antiquewhite", "aqua", "aquamarine", "azure", "beige", "bisque", "black", "blanchedalmond", "blue", "blueviolet", "brown", "burlywood", "cadetblue", "chartreuse", "chocolate", "coral", "cornflowerblue", "cornsilk", "crimson", "cyan", "darkblue", "darkcyan", "darkgoldenrod", "darkgray", "darkgreen", "darkkhaki", "darkmagenta", "darkolivegreen", "darkorange", "darkorchid", "darkred", "darksalmon", "darkseagreen", "darkslateblue", "darkslategray", "darkturquoise", "darkviolet", "deeppink", "deepskyblue", "dimgray", "dodgerblue", "firebrick", "floralwhite", "forestgreen", "fuchsia", "gainsboro", "ghostwhite", "gold", "goldenrod", "gray", "grey", "green", "greenyellow", "honeydew", "hotpink", "indianred", "indigo", "ivory", "khaki", "lavender", "lavenderblush", "lawngreen", "lemonchiffon", "lightblue", "lightcoral", "lightcyan", "lightgoldenrodyellow", "lightgray", "lightgreen", "lightpink", "lightsalmon", "lightseagreen", "lightskyblue", "lightslategray", "lightsteelblue", "lightyellow", "lime", "limegreen", "linen", "magenta", "maroon", "mediumaquamarine", "mediumblue", "mediumorchid", "mediumpurple", "mediumseagreen", "mediumslateblue", "mediumspringgreen", "mediumturquoise", "mediumvioletred", "midnightblue", "mintcream", "mistyrose", "moccasin", "navajowhite", "navy", "oldlace", "olive", "olivedrab", "orange", "orangered", "orchid", "palegoldenrod", "palegreen", "paleturquoise", "palevioletred", "papayawhip", "peachpuff", "peru", "pink", "plum", "powderblue", "purple", "rebeccapurple", "red", "rosybrown", "royalblue", "saddlebrown", "salmon", "sandybrown", "seagreen", "seashell", "sienna", "silver", "skyblue", "slateblue", "slategray", "snow", "springgreen", "steelblue", "tan", "teal", "thistle", "tomato", "turquoise", "violet", "wheat", "white", "whitesmoke", "yellow", "yellowgreen"],
        _ = t(b),
        y = ["above", "absolute", "activeborder", "additive", "activecaption", "afar", "after-white-space", "ahead", "alias", "all", "all-scroll", "alphabetic", "alternate", "always", "amharic", "amharic-abegede", "antialiased", "appworkspace", "arabic-indic", "armenian", "asterisks", "attr", "auto", "auto-flow", "avoid", "avoid-column", "avoid-page", "avoid-region", "background", "backwards", "baseline", "below", "bidi-override", "binary", "bengali", "blink", "block", "block-axis", "bold", "bolder", "border", "border-box", "both", "bottom", "break", "break-all", "break-word", "bullets", "button", "button-bevel", "buttonface", "buttonhighlight", "buttonshadow", "buttontext", "calc", "cambodian", "capitalize", "caps-lock-indicator", "caption", "captiontext", "caret", "cell", "center", "checkbox", "circle", "cjk-decimal", "cjk-earthly-branch", "cjk-heavenly-stem", "cjk-ideographic", "clear", "clip", "close-quote", "col-resize", "collapse", "color", "color-burn", "color-dodge", "column", "column-reverse", "compact", "condensed", "contain", "content", "contents", "content-box", "context-menu", "continuous", "copy", "counter", "counters", "cover", "crop", "cross", "crosshair", "currentcolor", "cursive", "cyclic", "darken", "dashed", "decimal", "decimal-leading-zero", "default", "default-button", "dense", "destination-atop", "destination-in", "destination-out", "destination-over", "devanagari", "difference", "disc", "discard", "disclosure-closed", "disclosure-open", "document", "dot-dash", "dot-dot-dash", "dotted", "double", "down", "e-resize", "ease", "ease-in", "ease-in-out", "ease-out", "element", "ellipse", "ellipsis", "embed", "end", "ethiopic", "ethiopic-abegede", "ethiopic-abegede-am-et", "ethiopic-abegede-gez", "ethiopic-abegede-ti-er", "ethiopic-abegede-ti-et", "ethiopic-halehame-aa-er", "ethiopic-halehame-aa-et", "ethiopic-halehame-am-et", "ethiopic-halehame-gez", "ethiopic-halehame-om-et", "ethiopic-halehame-sid-et", "ethiopic-halehame-so-et", "ethiopic-halehame-ti-er", "ethiopic-halehame-ti-et", "ethiopic-halehame-tig", "ethiopic-numeric", "ew-resize", "exclusion", "expanded", "extends", "extra-condensed", "extra-expanded", "fantasy", "fast", "fill", "fixed", "flat", "flex", "flex-end", "flex-start", "footnotes", "forwards", "from", "geometricPrecision", "georgian", "graytext", "grid", "groove", "gujarati", "gurmukhi", "hand", "hangul", "hangul-consonant", "hard-light", "hebrew", "help", "hidden", "hide", "higher", "highlight", "highlighttext", "hiragana", "hiragana-iroha", "horizontal", "hsl", "hsla", "hue", "icon", "ignore", "inactiveborder", "inactivecaption", "inactivecaptiontext", "infinite", "infobackground", "infotext", "inherit", "initial", "inline", "inline-axis", "inline-block", "inline-flex", "inline-grid", "inline-table", "inset", "inside", "intrinsic", "invert", "italic", "japanese-formal", "japanese-informal", "justify", "kannada", "katakana", "katakana-iroha", "keep-all", "khmer", "korean-hangul-formal", "korean-hanja-formal", "korean-hanja-informal", "landscape", "lao", "large", "larger", "left", "level", "lighter", "lighten", "line-through", "linear", "linear-gradient", "lines", "list-item", "listbox", "listitem", "local", "logical", "loud", "lower", "lower-alpha", "lower-armenian", "lower-greek", "lower-hexadecimal", "lower-latin", "lower-norwegian", "lower-roman", "lowercase", "ltr", "luminosity", "malayalam", "match", "matrix", "matrix3d", "media-controls-background", "media-current-time-display", "media-fullscreen-button", "media-mute-button", "media-play-button", "media-return-to-realtime-button", "media-rewind-button", "media-seek-back-button", "media-seek-forward-button", "media-slider", "media-sliderthumb", "media-time-remaining-display", "media-volume-slider", "media-volume-slider-container", "media-volume-sliderthumb", "medium", "menu", "menulist", "menulist-button", "menulist-text", "menulist-textfield", "menutext", "message-box", "middle", "min-intrinsic", "mix", "mongolian", "monospace", "move", "multiple", "multiply", "myanmar", "n-resize", "narrower", "ne-resize", "nesw-resize", "no-close-quote", "no-drop", "no-open-quote", "no-repeat", "none", "normal", "not-allowed", "nowrap", "ns-resize", "numbers", "numeric", "nw-resize", "nwse-resize", "oblique", "octal", "opacity", "open-quote", "optimizeLegibility", "optimizeSpeed", "oriya", "oromo", "outset", "outside", "outside-shape", "overlay", "overline", "padding", "padding-box", "painted", "page", "paused", "persian", "perspective", "plus-darker", "plus-lighter", "pointer", "polygon", "portrait", "pre", "pre-line", "pre-wrap", "preserve-3d", "progress", "push-button", "radial-gradient", "radio", "read-only", "read-write", "read-write-plaintext-only", "rectangle", "region", "relative", "repeat", "repeating-linear-gradient", "repeating-radial-gradient", "repeat-x", "repeat-y", "reset", "reverse", "rgb", "rgba", "ridge", "right", "rotate", "rotate3d", "rotateX", "rotateY", "rotateZ", "round", "row", "row-resize", "row-reverse", "rtl", "run-in", "running", "s-resize", "sans-serif", "saturation", "scale", "scale3d", "scaleX", "scaleY", "scaleZ", "screen", "scroll", "scrollbar", "scroll-position", "se-resize", "searchfield", "searchfield-cancel-button", "searchfield-decoration", "searchfield-results-button", "searchfield-results-decoration", "self-start", "self-end", "semi-condensed", "semi-expanded", "separate", "serif", "show", "sidama", "simp-chinese-formal", "simp-chinese-informal", "single", "skew", "skewX", "skewY", "skip-white-space", "slide", "slider-horizontal", "slider-vertical", "sliderthumb-horizontal", "sliderthumb-vertical", "slow", "small", "small-caps", "small-caption", "smaller", "soft-light", "solid", "somali", "source-atop", "source-in", "source-out", "source-over", "space", "space-around", "space-between", "space-evenly", "spell-out", "square", "square-button", "start", "static", "status-bar", "stretch", "stroke", "sub", "subpixel-antialiased", "super", "sw-resize", "symbolic", "symbols", "system-ui", "table", "table-caption", "table-cell", "table-column", "table-column-group", "table-footer-group", "table-header-group", "table-row", "table-row-group", "tamil", "telugu", "text", "text-bottom", "text-top", "textarea", "textfield", "thai", "thick", "thin", "threeddarkshadow", "threedface", "threedhighlight", "threedlightshadow", "threedshadow", "tibetan", "tigre", "tigrinya-er", "tigrinya-er-abegede", "tigrinya-et", "tigrinya-et-abegede", "to", "top", "trad-chinese-formal", "trad-chinese-informal", "transform", "translate", "translate3d", "translateX", "translateY", "translateZ", "transparent", "ultra-condensed", "ultra-expanded", "underline", "unset", "up", "upper-alpha", "upper-armenian", "upper-greek", "upper-hexadecimal", "upper-latin", "upper-norwegian", "upper-roman", "uppercase", "urdu", "url", "var", "vertical", "vertical-text", "visible", "visibleFill", "visiblePainted", "visibleStroke", "visual", "w-resize", "wait", "wave", "wider", "window", "windowframe", "windowtext", "words", "wrap", "wrap-reverse", "x-large", "x-small", "xor", "xx-large", "xx-small"],
        k = t(y), v = r.concat(a).concat(s).concat(c).concat(d).concat(m).concat(b).concat(y);
    e.registerHelper("hintWords", "css", v), e.defineMIME("text/css", {
        documentTypes: i,
        mediaTypes: o,
        mediaFeatures: l,
        mediaValueKeywords: u,
        propertyKeywords: f,
        nonStandardPropertyKeywords: p,
        fontProperties: h,
        counterDescriptors: g,
        colorKeywords: _,
        valueKeywords: k,
        tokenHooks: {
            "/": function (e, t) {
                return !!e.eat("*") && (t.tokenize = n, n(e, t))
            }
        },
        name: "css"
    }), e.defineMIME("text/x-scss", {
        mediaTypes: o,
        mediaFeatures: l,
        mediaValueKeywords: u,
        propertyKeywords: f,
        nonStandardPropertyKeywords: p,
        colorKeywords: _,
        valueKeywords: k,
        fontProperties: h,
        allowNested: !0,
        lineComment: "//",
        tokenHooks: {
            "/": function (e, t) {
                return e.eat("/") ? (e.skipToEnd(), ["comment", "comment"]) : e.eat("*") ? (t.tokenize = n, n(e, t)) : ["operator", "operator"]
            }, ":": function (e) {
                return !!e.match(/\s*\{/, !1) && [null, null]
            }, $: function (e) {
                return e.match(/^[\w-]+/), e.match(/^\s*:/, !1) ? ["variable-2", "variable-definition"] : ["variable-2", "variable"]
            }, "#": function (e) {
                return !!e.eat("{") && [null, "interpolation"]
            }
        },
        name: "css",
        helperType: "scss"
    }), e.defineMIME("text/x-less", {
        mediaTypes: o,
        mediaFeatures: l,
        mediaValueKeywords: u,
        propertyKeywords: f,
        nonStandardPropertyKeywords: p,
        colorKeywords: _,
        valueKeywords: k,
        fontProperties: h,
        allowNested: !0,
        lineComment: "//",
        tokenHooks: {
            "/": function (e, t) {
                return e.eat("/") ? (e.skipToEnd(), ["comment", "comment"]) : e.eat("*") ? (t.tokenize = n, n(e, t)) : ["operator", "operator"]
            }, "@": function (e) {
                return e.eat("{") ? [null, "interpolation"] : !e.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/, !1) && (e.eatWhile(/[\w\\\-]/), e.match(/^\s*:/, !1) ? ["variable-2", "variable-definition"] : ["variable-2", "variable"])
            }, "&": function () {
                return ["atom", "atom"]
            }
        },
        name: "css",
        helperType: "less"
    }), e.defineMIME("text/x-gss", {
        documentTypes: i,
        mediaTypes: o,
        mediaFeatures: l,
        propertyKeywords: f,
        nonStandardPropertyKeywords: p,
        fontProperties: h,
        counterDescriptors: g,
        colorKeywords: _,
        valueKeywords: k,
        supportsAtComponent: !0,
        tokenHooks: {
            "/": function (e, t) {
                return !!e.eat("*") && (t.tokenize = n, n(e, t))
            }
        },
        name: "css",
        helperType: "gss"
    })
}), CodeMirror.defineMode("gfm", function (e, t) {
    var n = 0, r = {
        startState: function () {
            return {code: !1, codeBlock: !1, ateSpace: !1}
        }, copyState: function (e) {
            return {code: e.code, codeBlock: e.codeBlock, ateSpace: e.ateSpace}
        }, token: function (e, t) {
            if (t.codeBlock) return e.match(/^```/) ? (t.codeBlock = !1, null) : (e.skipToEnd(), null);
            if (e.sol() && (t.code = !1), e.sol() && e.match(/^```/)) return e.skipToEnd(), t.codeBlock = !0, null;
            if ("`" === e.peek()) {
                e.next();
                var r = e.pos;
                e.eatWhile("`");
                var i = 1 + e.pos - r;
                return t.code ? i === n && (t.code = !1) : (n = i, t.code = !0), null
            }
            return t.code ? (e.next(), null) : e.eatSpace() ? (t.ateSpace = !0, null) : ((e.sol() || t.ateSpace) && (t.ateSpace = !1), e.match(/^((?:(https?|mailto):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/i) ? "link" : (e.next(), null))
        }, blankLine: function (e) {
            return e.code = !1, null
        }
    }, i = {underscoresBreakWords: !1, taskLists: !0, fencedCodeBlocks: !0};
    for (var a in t) i[a] = t[a];
    return i.name = "markdown", CodeMirror.defineMIME("gfmBase", i), CodeMirror.overlayMode(CodeMirror.getMode(e, "gfmBase"), r)
}, "markdown"), CodeMirror.defineMode("markdown", function (e, t) {
    function n(e, t, n) {
        return t.f = t.inline = n, n(e, t)
    }

    function r(e, t, n) {
        return t.f = t.block = n, n(e, t)
    }

    function i(e) {
        return e.linkTitle = !1, e.em = !1, e.strong = !1, e.del = !1, e.quote = 0, _ || e.f != o || (e.f = u, e.block = a), e.trailingSpace = 0, e.trailingSpaceNewLine = !1, e.thisLineHasContent = !1, e.localMode ? "line-cm-s-inner overlay" : null
    }

    function a(e, i) {
        var a = !1 !== i.list;
        !1 !== i.list && i.indentationDiff >= 0 ? (i.indentationDiff < 4 && (i.indentation -= i.indentationDiff), i.list = null) : !1 !== i.list && i.indentation > 0 ? (i.list = null, i.listDepth = Math.floor(i.indentation / 4)) : !1 !== i.list && (i.list = !1, i.listDepth = 0);
        var o = null;
        if (i.indentationDiff >= 4) return i.indentation -= 4, e.skipToEnd(), w;
        if (e.eatSpace()) return null;
        if (!i.inYAML && void 0 === i.lineBefore && e.match(V)) return i.inYAML = !0, "hr";
        if (i.inYAML && e.match(V)) return i.inYAML = !1, "hr";
        if (i.inYAML) return e.skipToEnd(), "line-cm-yaml";
        if (e.match(K)) return i.inMath = !i.inMath, e.skipToEnd(), "comment";
        if (i.inMath) return i.localMode = k("latex"), i.localMode && (i.localState = i.localMode.startState ? i.localMode.startState() : {}), r(e, i, s), t.highlightFormatting && (i.formatting = "code-block"), i.code = !0, l(i, e.pos);
        if (o = e.match(File.option.strictMarkdown ? B : U)) return i.header = o[0].length <= 6 ? o[0].length : 6, t.highlightFormatting && (i.formatting = "header"), i.blockStyles.push("line-cm-header"), i.blockStyles.push("line-cm-header" + i.header), i.f = i.inline, l(i);
        if (i.prevLineHasContent && (o = e.match(Z))) return i.header = "=" == o[0].charAt(0) ? 1 : 2, t.highlightFormatting && (i.formatting = "header"), i.f = i.inline, l(i);
        if (e.eat(">")) {
            for (i.indentation++ , i.quote = 1, t.highlightFormatting && (i.formatting = "quote"), e.eatSpace(); e.eat(">");) e.eatSpace(), i.quote++;
            return i.blockStyles.push("line-cm-atom"), l(i, e.pos)
        }
        if ("[" === e.peek()) return n(e, i, p);
        if (e.match(F, !0)) return T;
        if ((!i.prevLineHasContent || a) && e.match(O, !1) || e.match(W, !1)) {
            var c = null;
            return e.match(O, !0) ? c = "ul" : (e.match(W, !0), c = "ol"), i.indentation += 4, i.list = !0, i.listDepth++ , t.taskLists && e.match(N, !1) && (i.taskList = !0), t.highlightFormatting && (i.formatting = ["list", "list-" + c]), l(i, e.pos)
        }
        if (t.fencedCodeBlocks && e.match(/^( *(`{3,}|~{3,}) *)([^\n`]+)? *$/, !0)) return i.localMode = k(RegExp.$3), i.localMode && (i.localState = i.localMode.startState ? i.localMode.startState() : {}), r(e, i, s), t.highlightFormatting && (i.formatting = "code-block"), i.code = !0, l(i, e.pos);
        if (i.lineAfter && (o = i.lineAfter.match(Z, !1))) {
            var u = "=" == o[0].charAt(0) ? 1 : 2;
            i.blockStyles.push("line-cm-header cm-header"), i.blockStyles.push("line-cm-header" + u), i.blockStyles.push("cm-header" + u)
        } else e.match(H, !1) && ((i.lineAfter || "").match(H, !1) || (i.lineBefore || "").match(H, !1)) && (i.blockStyles.push("line-cm-table-row"), i.f = i.inline);
        return n(e, i, i.inline)
    }

    function o(e, t) {
        var n = y.token(e, t.htmlState);
        return _ && "tag" === n && "openTag" !== t.htmlState.type && !t.htmlState.context && (t.f = u, t.block = a), n
    }

    function s(e, n) {
        function r() {
            n.localMode = n.localState = null, n.f = u, n.block = a, t.highlightFormatting && (n.formatting = "code-block"), n.code = !0;
            var e = l(n);
            return n.code = !1, e
        }

        if (n.inMath && e.sol() && e.match(K, !0)) {
            i = r();
            return n.inMath = !1, i
        }
        if (!n.inMath && e.sol() && e.match(/^```/, !0)) {
            var i = r();
            return n.code = !1, i
        }
        return n.localMode ? "line-cm-s-inner overlay " + (n.localMode.token(e, n.localState) || "") : (e.skipToEnd(), "line-cm-s-inner overlay code")
    }

    function l(e, t) {
        var n = [];
        if (e.formatting) {
            n.push(I), "string" == typeof e.formatting && (e.formatting = [e.formatting]);
            for (var r = 0; r < e.formatting.length; r++) n.push(I + "-" + e.formatting[r]), "header" === e.formatting[r] && n.push(I + "-" + e.formatting[r] + e.header)
        }
        if (n = n.concat(e.blockStyles || []), t && (n.push("block-start"), e.atBlockStart = t), e.taskList && n.push("block-start"), e.taskOpen) return n.push("meta"), n.length ? n.join(" ") : null;
        if (e.taskClosed) return n.push("property"), n.length ? n.join(" ") : null;
        if (e.linkHref) return n.push(P), n.length ? n.join(" ") : null;
        if (e.strong && n.push(D), e.em && n.push(L), e.del && n.push(R), e.linkText && n.push($), e.code && n.push(w), e.header && (n.push(x), n.push(x + e.header)), e.quote && n.push(e.quote % 2 ? S : E), !1 !== e.list) {
            var i = (e.listDepth - 1) % 3;
            i ? 1 === i ? n.push(M) : n.push(C) : n.push(z)
        }
        return e.trailingSpaceNewLine ? n.push("trailing-space-new-line") : e.trailingSpace && n.push("trailing-space-" + (e.trailingSpace % 2 ? "a" : "b")), n.length ? n.join(" ") : null
    }

    function c(e, t) {
        if (e.match(G, !0)) return l(t)
    }

    function u(e, n) {
        var r = n.text(e, n);
        if (void 0 !== r) return r;
        if (n.list) return n.list = null, l(n);
        if (n.taskList) {
            "x" !== e.match(N, !0)[1] ? n.taskOpen = !0 : n.taskClosed = !0, n.formatting = "task";
            h = l(n);
            return n.taskList = !1, n.taskOpen = !1, n.taskClosed = !1, h
        }
        if (n.taskOpen = !1, n.taskClosed = !1, n.header && e.match(/^#+ *$/, !0)) return t.highlightFormatting && (n.formatting = "header"), l(n);
        var i = e.sol(), a = e.next();
        if (n.escape) return n.escape = !1, l(n);
        if ("\\" === a) return t.highlightFormatting && (n.formatting = "escape"), n.escape = !0, l(n);
        if (n.linkTitle) {
            n.linkTitle = !1;
            var o = a;
            "(" === a && (o = ")");
            var s = "^\\s*(?:[^" + (o = (o + "").replace(/([.?*+^$[\]\\(){}|-])/g, "\\$1")) + "\\\\]+|\\\\\\\\|\\\\.)" + o;
            if (e.match(new RegExp(s), !0)) return P
        }
        if ("`" === a) {
            var c = n.formatting;
            t.highlightFormatting && (n.formatting = "code");
            var u = l(n), m = e.pos;
            e.eatWhile("`");
            var p = 1 + e.pos - m;
            return n.code ? p === v ? (n.code = !1, u) : (n.formatting = c, l(n)) : (v = p, n.code = !0, l(n))
        }
        if (n.code) return l(n);
        if ("!" === a && e.match(/\[[^\]]*\] ?(?:\(|\[)/, !1)) return e.match(/\[[^\]]*\]/), n.inline = n.f = f, q;
        if ("[" === a && e.match(/.*\](\(| ?\[)/, !1)) return n.linkText = !0, t.highlightFormatting && (n.formatting = "link"), l(n);
        if ("]" === a && n.linkText) {
            t.highlightFormatting && (n.formatting = "link");
            var h = l(n);
            return n.linkText = !1, n.inline = n.f = f, h
        }
        if ("<" === a && e.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/, !1)) return n.f = n.inline = d, t.highlightFormatting && (n.formatting = "link"), (h = l(n)) ? h += " " : h = "", h + A;
        if ("<" === a && e.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/, !1)) return n.f = n.inline = d, t.highlightFormatting && (n.formatting = "link"), (h = l(n)) ? h += " " : h = "", h + j;
        if ("<" === a && e.match(/^\/?\w*?>/)) return n.md_inside = !1, "tag";
        var g = !1;
        if (!t.underscoresBreakWords && "_" === a && "_" !== e.peek() && e.match(/(\w)/, !1)) {
            var b = e.pos - 2;
            if (b >= 0) {
                var _ = e.string.charAt(b);
                "_" !== _ && _.match(/(\w)/, !1) && (g = !0)
            }
        }
        if ("~" === a && e.eat("~")) return n.del ? (t.highlightFormatting && (n.formatting = "del"), u = l(n), n.del = !1, u) : (n.del = !0, l(n));
        if ("*" === a || "_" === a && !g) if (i && " " === e.peek()) ; else {
            if (n.strong === a && e.eat(a)) {
                t.highlightFormatting && (n.formatting = "strong");
                u = l(n);
                return n.strong = !1, u
            }
            if (!n.strong && e.eat(a)) return n.strong = a, t.highlightFormatting && (n.formatting = "strong"), l(n);
            if (n.em === a) {
                t.highlightFormatting && (n.formatting = "em");
                u = l(n);
                return n.em = !1, u
            }
            if (!n.em) return n.em = a, t.highlightFormatting && (n.formatting = "em"), l(n)
        } else if (" " === a) {
            if (e.eat("*") || e.eat("_")) {
                if (" " === e.peek()) return l(n);
                e.backUp(1)
            }
            if ("~" === a && e.eat("~")) return n.del ? (t.highlightFormatting && (n.formatting = "del"), u = l(n), n.del = !1, u) : (n.del = !0, l(n))
        }
        return " " === a && (e.match(/ +$/, !1) ? n.trailingSpace++ : n.trailingSpace && (n.trailingSpaceNewLine = !0)), l(n)
    }

    function d(e, n) {
        if (">" === e.next()) {
            n.f = n.inline = u, t.highlightFormatting && (n.formatting = "link");
            var r = l(n);
            return r ? r += " " : r = "", r + A
        }
        return e.match(/^[^>]+/, !0), A
    }

    function f(e, n) {
        if (e.eatSpace()) return null;
        var r = e.next();
        return "(" === r || "[" === r ? (n.f = n.inline = m("(" === r ? ")" : "]"), t.highlightFormatting && (n.formatting = "link-string"), n.linkHref = !0, l(n)) : "error"
    }

    function m(e) {
        return function (n, r) {
            if (n.next() === e) {
                r.f = r.inline = u, t.highlightFormatting && (r.formatting = "link-string");
                var i = l(r);
                return r.linkHref = !1, i
            }
            return n.match(b(e), !0) && n.backUp(1), r.linkHref = !0, l(r)
        }
    }

    function p(e, r) {
        return e.match(/^[^\]]*\]:/, !1) ? (r.f = h, e.next(), t.highlightFormatting && (r.formatting = "link"), r.linkText = !0, l(r)) : n(e, r, u)
    }

    function h(e, n) {
        if (e.match(/^\]:/, !0)) {
            n.f = n.inline = g, t.highlightFormatting && (n.formatting = "link");
            var r = l(n);
            return n.linkText = !1, r
        }
        return e.match(/^[^\]]+/, !0), $
    }

    function g(e, t) {
        return e.eatSpace() ? null : (e.match(/^[^\s]+/, !0), void 0 === e.peek() ? t.linkTitle = !0 : e.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/, !0), t.f = t.inline = u, P)
    }

    function b(e) {
        return Y[e] || (e = (e + "").replace(/([.?*+^$[\]\\(){}|-])/g, "\\$1"), Y[e] = new RegExp("^(?:[^\\\\]|\\\\.)*?(" + e + ")")), Y[e]
    }

    var _ = CodeMirror.modes.hasOwnProperty("xml"),
        y = CodeMirror.getMode(e, _ ? {name: "xml", htmlMode: !0} : "text/plain"), k = function (t) {
            if ("markdown" == t || "gfm" == t) return CodeMirror.getMode(e, {name: t, isOverlay: !0});
            var n = getCodeMirrorMode(t, !0);
            return n ? CodeMirror.getMode(e, n) : null
        };
    void 0 === t.highlightFormatting && (t.highlightFormatting = !1), void 0 === t.underscoresBreakWords && (t.underscoresBreakWords = !1), void 0 === t.fencedCodeBlocks && (t.fencedCodeBlocks = !1), void 0 === t.taskLists && (t.taskLists = !0);
    var v = 0, x = "header", w = "comment", S = "atom", E = "number", z = "variable-2", M = "variable-2",
        C = "variable-2", T = "hr", q = "tag", I = "formatting", A = "link", j = "link", $ = "link", P = "string",
        L = "em", R = "del", D = "strong", F = /^([*\-=_])(?:\s*\1){2,}\s*$/, O = /^[*\-+]\s+/, W = /^[0-9]+\.\s+/,
        N = /^\[(x| )\]\s/, U = /^#+/, B = /^#+\s+/, H = /^ *(\|[^\|]*\|.+\|)\s*$/, Z = /^(?:\={1,}|-{1,})$/,
        V = /^---$/, G = /^[^#!\[\]*_\\<>~` "'(]+/, K = /^\s*\$\$\s*$/, Y = [];
    return {
        startState: function () {
            return {
                f: a,
                prevLineHasContent: !1,
                thisLineHasContent: !1,
                inYAML: !1,
                inMath: !1,
                block: a,
                htmlState: CodeMirror.startState(y),
                indentation: 0,
                blockStyles: [],
                inline: u,
                text: c,
                escape: !1,
                formatting: !1,
                linkText: !1,
                linkHref: !1,
                linkTitle: !1,
                em: !1,
                strong: !1,
                header: 0,
                taskList: !1,
                list: !1,
                listDepth: 0,
                quote: 0,
                trailingSpace: 0,
                trailingSpaceNewLine: !1
            }
        }, copyState: function (e) {
            return {
                f: e.f,
                prevLineHasContent: e.prevLineHasContent,
                thisLineHasContent: e.thisLineHasContent,
                inYAML: e.inYAML,
                inMath: e.inMath,
                block: e.block,
                htmlState: CodeMirror.copyState(y, e.htmlState),
                indentation: e.indentation,
                blockStyles: e.blockStyles.slice(0),
                localMode: e.localMode,
                localState: e.localMode ? CodeMirror.copyState(e.localMode, e.localState) : null,
                inline: e.inline,
                text: e.text,
                escape: !1,
                formatting: !1,
                linkTitle: e.linkTitle,
                em: e.em,
                strong: e.strong,
                header: e.header,
                taskList: e.taskList,
                list: e.list,
                listDepth: e.listDepth,
                quote: e.quote,
                trailingSpace: e.trailingSpace,
                trailingSpaceNewLine: e.trailingSpaceNewLine,
                md_inside: e.md_inside
            }
        }, token: function (e, t) {
            if (t.formatting = !1, e.sol()) {
                var n = !1;
                if ((e.match(/^\s*$/, !0) || t.header) && (n = !0), t.header = 0, t.blockStyles = [], t.atBlockStart = 0, n) return t.prevLineHasContent = !1, i(t), this.token(e, t);
                t.prevLineHasContent = t.thisLineHasContent, t.thisLineHasContent = !0, t.escape = !1, t.taskList = !1, t.code = !1, t.trailingSpace = 0, t.trailingSpaceNewLine = !1, t.f = t.block;
                var r = e.match(/^\s*/, !0)[0].replace(/\t/g, "    ").length,
                    a = 4 * Math.floor((r - t.indentation) / 4);
                a > 4 && (a = 4);
                var o = t.indentation + a;
                if (t.indentationDiff = o - t.indentation, t.indentation = o, r > 0) return null
            }
            var s = t.f(e, t);
            return e.start == e.pos ? this.token(e, t) : s
        }, blankLine: i, getType: l
    }
}, "xml"), CodeMirror.defineMIME("text/x-markdown", "markdown"), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";
    var t = {
        autoSelfClosers: {
            area: !0,
            base: !0,
            br: !0,
            col: !0,
            command: !0,
            embed: !0,
            frame: !0,
            hr: !0,
            img: !0,
            input: !0,
            keygen: !0,
            link: !0,
            meta: !0,
            param: !0,
            source: !0,
            track: !0,
            wbr: !0,
            menuitem: !0
        },
        implicitlyClosed: {
            dd: !0,
            li: !0,
            optgroup: !0,
            option: !0,
            p: !0,
            rp: !0,
            rt: !0,
            tbody: !0,
            td: !0,
            tfoot: !0,
            th: !0,
            tr: !0
        },
        contextGrabbers: {
            dd: {dd: !0, dt: !0},
            dt: {dd: !0, dt: !0},
            li: {li: !0},
            option: {option: !0, optgroup: !0},
            optgroup: {optgroup: !0},
            p: {
                address: !0,
                article: !0,
                aside: !0,
                blockquote: !0,
                dir: !0,
                div: !0,
                dl: !0,
                fieldset: !0,
                footer: !0,
                form: !0,
                h1: !0,
                h2: !0,
                h3: !0,
                h4: !0,
                h5: !0,
                h6: !0,
                header: !0,
                hgroup: !0,
                hr: !0,
                menu: !0,
                nav: !0,
                ol: !0,
                p: !0,
                pre: !0,
                section: !0,
                table: !0,
                ul: !0
            },
            rp: {rp: !0, rt: !0},
            rt: {rp: !0, rt: !0},
            tbody: {tbody: !0, tfoot: !0},
            td: {td: !0, th: !0},
            tfoot: {tbody: !0},
            th: {td: !0, th: !0},
            thead: {tbody: !0, tfoot: !0},
            tr: {tr: !0}
        },
        doNotIndent: {pre: !0},
        allowUnquoted: !0,
        allowMissing: !0,
        caseFold: !0
    }, n = {
        autoSelfClosers: {},
        implicitlyClosed: {},
        contextGrabbers: {},
        doNotIndent: {},
        allowUnquoted: !1,
        allowMissing: !1,
        caseFold: !1
    };
    e.defineMode("xml", function (r, i) {
        function a(e, t) {
            function n(n) {
                return t.tokenize = n, n(e, t)
            }

            var r = e.next();
            if ("<" == r) return e.eat("!") ? e.eat("[") ? e.match("CDATA[") ? n(l("atom", "]]>")) : null : e.match("--") ? n(l("comment", "--\x3e")) : e.match("DOCTYPE", !0, !0) ? (e.eatWhile(/[\w\._\-]/), n(c(1))) : null : e.eat("?") ? (e.eatWhile(/[\w\._\-]/), t.tokenize = l("meta", "?>"), "meta") : (z = e.eat("/") ? "closeTag" : "openTag", t.tokenize = o, "tag bracket");
            if ("&" == r) {
                return (e.eat("#") ? e.eat("x") ? e.eatWhile(/[a-fA-F\d]/) && e.eat(";") : e.eatWhile(/[\d]/) && e.eat(";") : e.eatWhile(/[\w\.\-:]/) && e.eat(";")) ? "atom" : "error"
            }
            return e.eatWhile(/[^&<]/), null
        }

        function o(e, t) {
            var n = e.next();
            if (">" == n || "/" == n && e.eat(">")) return t.tokenize = a, z = ">" == n ? "endTag" : "selfcloseTag", "tag bracket";
            if ("=" == n) return z = "equals", null;
            if ("<" == n) {
                t.tokenize = a, t.state = m, t.tagName = t.tagStart = null;
                var r = t.tokenize(e, t);
                return r ? r + " tag error" : "tag error"
            }
            return /[\'\"]/.test(n) ? (t.tokenize = s(n), t.stringStartCol = e.column(), t.tokenize(e, t)) : (e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/), "word")
        }

        function s(e) {
            var t = function (t, n) {
                for (; !t.eol();) if (t.next() == e) {
                    n.tokenize = o;
                    break
                }
                return "string"
            };
            return t.isInAttribute = !0, t
        }

        function l(e, t) {
            return function (n, r) {
                for (; !n.eol();) {
                    if (n.match(t)) {
                        r.tokenize = a;
                        break
                    }
                    n.next()
                }
                return e
            }
        }

        function c(e) {
            return function (t, n) {
                for (var r; null != (r = t.next());) {
                    if ("<" == r) return n.tokenize = c(e + 1), n.tokenize(t, n);
                    if (">" == r) {
                        if (1 == e) {
                            n.tokenize = a;
                            break
                        }
                        return n.tokenize = c(e - 1), n.tokenize(t, n)
                    }
                }
                return "meta"
            }
        }

        function u(e, t, n) {
            this.prev = e.context, this.tagName = t, this.indent = e.indented, this.startOfLine = n, (w.doNotIndent.hasOwnProperty(t) || e.context && e.context.noIndent) && (this.noIndent = !0)
        }

        function d(e) {
            e.context && (e.context = e.context.prev)
        }

        function f(e, t) {
            for (var n; ;) {
                if (!e.context) return;
                if (n = e.context.tagName, !w.contextGrabbers.hasOwnProperty(n) || !w.contextGrabbers[n].hasOwnProperty(t)) return;
                d(e)
            }
        }

        function m(e, t, n) {
            return "openTag" == e ? (n.tagStart = t.column(), p) : "closeTag" == e ? h : m
        }

        function p(e, t, n) {
            return "word" == e ? (n.tagName = t.current(), M = "tag", _) : (M = "error", p)
        }

        function h(e, t, n) {
            if ("word" == e) {
                var r = t.current();
                return n.context && n.context.tagName != r && w.implicitlyClosed.hasOwnProperty(n.context.tagName) && d(n), n.context && n.context.tagName == r || !1 === w.matchClosing ? (M = "tag", g) : (M = "tag error", b)
            }
            return M = "error", b
        }

        function g(e, t, n) {
            return "endTag" != e ? (M = "error", g) : (d(n), m)
        }

        function b(e, t, n) {
            return M = "error", g(e, t, n)
        }

        function _(e, t, n) {
            if ("word" == e) return M = "attribute", y;
            if ("endTag" == e || "selfcloseTag" == e) {
                var r = n.tagName, i = n.tagStart;
                return n.tagName = n.tagStart = null, "selfcloseTag" == e || w.autoSelfClosers.hasOwnProperty(r) ? f(n, r) : (f(n, r), n.context = new u(n, r, i == n.indented)), m
            }
            return M = "error", _
        }

        function y(e, t, n) {
            return "equals" == e ? k : (w.allowMissing || (M = "error"), _(e, t, n))
        }

        function k(e, t, n) {
            return "string" == e ? v : "word" == e && w.allowUnquoted ? (M = "string", _) : (M = "error", _(e, t, n))
        }

        function v(e, t, n) {
            return "string" == e ? v : _(e, t, n)
        }

        var x = r.indentUnit, w = {}, S = i.htmlMode ? t : n;
        for (var E in S) w[E] = S[E];
        for (var E in i) w[E] = i[E];
        var z, M;
        return a.isInText = !0, {
            startState: function (e) {
                var t = {tokenize: a, state: m, indented: e || 0, tagName: null, tagStart: null, context: null};
                return null != e && (t.baseIndent = e), t
            },
            token: function (e, t) {
                if (!t.tagName && e.sol() && (t.indented = e.indentation()), e.eatSpace()) return null;
                z = null;
                var n = t.tokenize(e, t);
                return (n || z) && "comment" != n && (M = null, t.state = t.state(z || n, e, t), M && (n = "error" == M ? n + " error" : M)), n
            },
            indent: function (t, n, r) {
                var i = t.context;
                if (t.tokenize.isInAttribute) return t.tagStart == t.indented ? t.stringStartCol + 1 : t.indented + x;
                if (i && i.noIndent) return e.Pass;
                if (t.tokenize != o && t.tokenize != a) return r ? r.match(/^(\s*)/)[0].length : 0;
                if (t.tagName) return !1 !== w.multilineTagIndentPastTag ? t.tagStart + t.tagName.length + 2 : t.tagStart + x * (w.multilineTagIndentFactor || 1);
                if (w.alignCDATA && /<!\[CDATA\[/.test(n)) return 0;
                var s = n && /^<(\/)?([\w_:\.-]*)/.exec(n);
                if (s && s[1]) for (; i;) {
                    if (i.tagName == s[2]) {
                        i = i.prev;
                        break
                    }
                    if (!w.implicitlyClosed.hasOwnProperty(i.tagName)) break;
                    i = i.prev
                } else if (s) for (; i;) {
                    var l = w.contextGrabbers[i.tagName];
                    if (!l || !l.hasOwnProperty(s[2])) break;
                    i = i.prev
                }
                for (; i && i.prev && !i.startOfLine;) i = i.prev;
                return i ? i.indent + x : t.baseIndent || 0
            },
            electricInput: /<\/[\s\w:]+>$/,
            blockCommentStart: "\x3c!--",
            blockCommentEnd: "--\x3e",
            configuration: w.htmlMode ? "html" : "xml",
            helperType: w.htmlMode ? "html" : "xml",
            skipAttribute: function (e) {
                e.state == k && (e.state = _)
            }
        }
    }), e.defineMIME("text/xml", "xml"), e.defineMIME("application/xml", "xml"), e.mimeModes.hasOwnProperty("text/html") || e.defineMIME("text/html", {
        name: "xml",
        htmlMode: !0
    })
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";
    e.defineMode("haskell", function (e, t) {
        function n(e, t, n) {
            return t(n), n(e, t)
        }

        function r(e, t) {
            if (e.eatWhile(h)) return null;
            var r = e.next();
            if (p.test(r)) {
                if ("{" == r && e.eat("-")) {
                    o = "comment";
                    return e.eat("#") && (o = "meta"), n(e, t, i(o, 1))
                }
                return null
            }
            if ("'" == r) return e.eat("\\"), e.next(), e.eat("'") ? "string" : "string error";
            if ('"' == r) return n(e, t, a);
            if (l.test(r)) return e.eatWhile(f), e.eat(".") ? "qualifier" : "variable-2";
            if (s.test(r)) return e.eatWhile(f), "variable";
            if (c.test(r)) {
                if ("0" == r) {
                    if (e.eat(/[xX]/)) return e.eatWhile(u), "integer";
                    if (e.eat(/[oO]/)) return e.eatWhile(d), "number"
                }
                e.eatWhile(c);
                o = "number";
                return e.match(/^\.\d+/) && (o = "number"), e.eat(/[eE]/) && (o = "number", e.eat(/[-+]/), e.eatWhile(c)), o
            }
            if ("." == r && e.eat(".")) return "keyword";
            if (m.test(r)) {
                if ("-" == r && e.eat(/-/) && (e.eatWhile(/-/), !e.eat(m))) return e.skipToEnd(), "comment";
                var o = "variable";
                return ":" == r && (o = "variable-2"), e.eatWhile(m), o
            }
            return "error"
        }

        function i(e, t) {
            return 0 == t ? r : function (n, a) {
                for (var o = t; !n.eol();) {
                    var s = n.next();
                    if ("{" == s && n.eat("-")) ++o; else if ("-" == s && n.eat("}") && 0 == --o) return a(r), e
                }
                return a(i(e, o)), e
            }
        }

        function a(e, t) {
            for (; !e.eol();) {
                var n = e.next();
                if ('"' == n) return t(r), "string";
                if ("\\" == n) {
                    if (e.eol() || e.eat(h)) return t(o), "string";
                    e.eat("&") || e.next()
                }
            }
            return t(r), "string error"
        }

        function o(e, t) {
            return e.eat("\\") ? n(e, t, a) : (e.next(), t(r), "error")
        }

        var s = /[a-z_]/, l = /[A-Z]/, c = /\d/, u = /[0-9A-Fa-f]/, d = /[0-7]/, f = /[a-z_A-Z0-9'\xa1-\uffff]/,
            m = /[-!#$%&*+.\/<=>?@\\^|~:]/, p = /[(),;[\]`{}]/, h = /[ \t\v\f]/, g = function () {
                function e(e) {
                    return function () {
                        for (var t = 0; t < arguments.length; t++) n[arguments[t]] = e
                    }
                }

                var n = {};
                e("keyword")("case", "class", "data", "default", "deriving", "do", "else", "foreign", "if", "import", "in", "infix", "infixl", "infixr", "instance", "let", "module", "newtype", "of", "then", "type", "where", "_"), e("keyword")("..", ":", "::", "=", "\\", "<-", "->", "@", "~", "=>"), e("builtin")("!!", "$!", "$", "&&", "+", "++", "-", ".", "/", "/=", "<", "<=", "=<<", "==", ">", ">=", ">>", ">>=", "^", "^^", "||", "*", "**"), e("builtin")("Bool", "Bounded", "Char", "Double", "EQ", "Either", "Enum", "Eq", "False", "FilePath", "Float", "Floating", "Fractional", "Functor", "GT", "IO", "IOError", "Int", "Integer", "Integral", "Just", "LT", "Left", "Maybe", "Monad", "Nothing", "Num", "Ord", "Ordering", "Rational", "Read", "ReadS", "Real", "RealFloat", "RealFrac", "Right", "Show", "ShowS", "String", "True"), e("builtin")("abs", "acos", "acosh", "all", "and", "any", "appendFile", "asTypeOf", "asin", "asinh", "atan", "atan2", "atanh", "break", "catch", "ceiling", "compare", "concat", "concatMap", "const", "cos", "cosh", "curry", "cycle", "decodeFloat", "div", "divMod", "drop", "dropWhile", "either", "elem", "encodeFloat", "enumFrom", "enumFromThen", "enumFromThenTo", "enumFromTo", "error", "even", "exp", "exponent", "fail", "filter", "flip", "floatDigits", "floatRadix", "floatRange", "floor", "fmap", "foldl", "foldl1", "foldr", "foldr1", "fromEnum", "fromInteger", "fromIntegral", "fromRational", "fst", "gcd", "getChar", "getContents", "getLine", "head", "id", "init", "interact", "ioError", "isDenormalized", "isIEEE", "isInfinite", "isNaN", "isNegativeZero", "iterate", "last", "lcm", "length", "lex", "lines", "log", "logBase", "lookup", "map", "mapM", "mapM_", "max", "maxBound", "maximum", "maybe", "min", "minBound", "minimum", "mod", "negate", "not", "notElem", "null", "odd", "or", "otherwise", "pi", "pred", "print", "product", "properFraction", "putChar", "putStr", "putStrLn", "quot", "quotRem", "read", "readFile", "readIO", "readList", "readLn", "readParen", "reads", "readsPrec", "realToFrac", "recip", "rem", "repeat", "replicate", "return", "reverse", "round", "scaleFloat", "scanl", "scanl1", "scanr", "scanr1", "seq", "sequence", "sequence_", "show", "showChar", "showList", "showParen", "showString", "shows", "showsPrec", "significand", "signum", "sin", "sinh", "snd", "span", "splitAt", "sqrt", "subtract", "succ", "sum", "tail", "take", "takeWhile", "tan", "tanh", "toEnum", "toInteger", "toRational", "truncate", "uncurry", "undefined", "unlines", "until", "unwords", "unzip", "unzip3", "userError", "words", "writeFile", "zip", "zip3", "zipWith", "zipWith3");
                var r = t.overrideKeywords;
                if (r) for (var i in r) r.hasOwnProperty(i) && (n[i] = r[i]);
                return n
            }();
        return {
            startState: function () {
                return {f: r}
            }, copyState: function (e) {
                return {f: e.f}
            }, token: function (e, t) {
                var n = t.f(e, function (e) {
                    t.f = e
                }), r = e.current();
                return g.hasOwnProperty(r) ? g[r] : n
            }, blockCommentStart: "{-", blockCommentEnd: "-}", lineComment: "--"
        }
    }), e.defineMIME("text/x-haskell", "haskell")
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror"), require("../xml/xml"), require("../javascript/javascript"), require("../css/css")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror", "../xml/xml", "../javascript/javascript", "../css/css"], e) : e(CodeMirror)
}(function (e) {
    "use strict";

    function t(e, t, n) {
        var r = e.current(), i = r.search(t);
        return i > -1 ? e.backUp(r.length - i) : r.match(/<\/?$/) && (e.backUp(r.length), e.match(t, !1) || e.match(r)), n
    }

    function n(e) {
        var t = l[e];
        return t || (l[e] = new RegExp("\\s+" + e + "\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*"))
    }

    function r(e, t) {
        var r = e.match(n(t));
        return r ? /^\s*(.*?)\s*$/.exec(r[2])[1] : ""
    }

    function i(e, t) {
        return new RegExp((t ? "^" : "") + "</s*" + e + "s*>", "i")
    }

    function a(e, t) {
        for (var n in e) for (var r = t[n] || (t[n] = []), i = e[n], a = i.length - 1; a >= 0; a--) r.unshift(i[a])
    }

    function o(e, t) {
        for (var n = 0; n < e.length; n++) {
            var i = e[n];
            if (!i[0] || i[1].test(r(t, i[0]))) return i[2]
        }
    }

    var s = {
        script: [["lang", /(javascript|babel)/i, "javascript"], ["type", /^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i, "javascript"], ["type", /./, "text/plain"], [null, null, "javascript"]],
        style: [["lang", /^css$/i, "css"], ["type", /^(text\/)?(x-)?(stylesheet|css)$/i, "css"], ["type", /./, "text/plain"], [null, null, "css"]]
    }, l = {};
    e.defineMode("htmlmixed", function (n, r) {
        function l(r, a) {
            var s, d = c.token(r, a.htmlState), f = /\btag\b/.test(d);
            if (f && !/[<>\s\/]/.test(r.current()) && (s = a.htmlState.tagName && a.htmlState.tagName.toLowerCase()) && u.hasOwnProperty(s)) a.inTag = s + " "; else if (a.inTag && f && />$/.test(r.current())) {
                var m = /^([\S]+) (.*)/.exec(a.inTag);
                a.inTag = null;
                var p = ">" == r.current() && o(u[m[1]], m[2]), h = e.getMode(n, p), g = i(m[1], !0), b = i(m[1], !1);
                a.token = function (e, n) {
                    return e.match(g, !1) ? (n.token = l, n.localState = n.localMode = null, null) : t(e, b, n.localMode.token(e, n.localState))
                }, a.localMode = h, a.localState = e.startState(h, c.indent(a.htmlState, ""))
            } else a.inTag && (a.inTag += r.current(), r.eol() && (a.inTag += " "));
            return d
        }

        var c = e.getMode(n, {
            name: "xml",
            htmlMode: !0,
            multilineTagIndentFactor: r.multilineTagIndentFactor,
            multilineTagIndentPastTag: r.multilineTagIndentPastTag
        }), u = {}, d = r && r.tags, f = r && r.scriptTypes;
        if (a(s, u), d && a(d, u), f) for (var m = f.length - 1; m >= 0; m--) u.script.unshift(["type", f[m].matches, f[m].mode]);
        return {
            startState: function () {
                return {token: l, inTag: null, localMode: null, localState: null, htmlState: e.startState(c)}
            }, copyState: function (t) {
                var n;
                return t.localState && (n = e.copyState(t.localMode, t.localState)), {
                    token: t.token,
                    inTag: t.inTag,
                    localMode: t.localMode,
                    localState: n,
                    htmlState: e.copyState(c, t.htmlState)
                }
            }, token: function (e, t) {
                return t.token(e, t)
            }, indent: function (t, n, r) {
                return !t.localMode || /^\s*<\//.test(n) ? c.indent(t.htmlState, n) : t.localMode.indent ? t.localMode.indent(t.localState, n, r) : e.Pass
            }, innerMode: function (e) {
                return {state: e.localState || e.htmlState, mode: e.localMode || c}
            }
        }
    }, "xml", "javascript", "css"), e.defineMIME("text/html", "htmlmixed")
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";
    e.defineMode("lua", function (e, t) {
        function n(e) {
            return new RegExp("^(?:" + e.join("|") + ")$", "i")
        }

        function r(e) {
            for (var t = 0; e.eat("=");) ++t;
            return e.eat("["), t
        }

        function i(e, t) {
            var n = e.next();
            return "-" == n && e.eat("-") ? e.eat("[") && e.eat("[") ? (t.cur = a(r(e), "comment"))(e, t) : (e.skipToEnd(), "comment") : '"' == n || "'" == n ? (t.cur = o(n))(e, t) : "[" == n && /[\[=]/.test(e.peek()) ? (t.cur = a(r(e), "string"))(e, t) : /\d/.test(n) ? (e.eatWhile(/[\w.%]/), "number") : /[\w_]/.test(n) ? (e.eatWhile(/[\w\\\-_.]/), "variable") : null
        }

        function a(e, t) {
            return function (n, r) {
                for (var a, o = null; null != (a = n.next());) if (null == o) "]" == a && (o = 0); else if ("=" == a) ++o; else {
                    if ("]" == a && o == e) {
                        r.cur = i;
                        break
                    }
                    o = null
                }
                return t
            }
        }

        function o(e) {
            return function (t, n) {
                for (var r, a = !1; null != (r = t.next()) && (r != e || a);) a = !a && "\\" == r;
                return a || (n.cur = i), "string"
            }
        }

        var s = e.indentUnit, l = n(t.specials || []),
            c = n(["_G", "_VERSION", "assert", "collectgarbage", "dofile", "error", "getfenv", "getmetatable", "ipairs", "load", "loadfile", "loadstring", "module", "next", "pairs", "pcall", "print", "rawequal", "rawget", "rawset", "require", "select", "setfenv", "setmetatable", "tonumber", "tostring", "type", "unpack", "xpcall", "coroutine.create", "coroutine.resume", "coroutine.running", "coroutine.status", "coroutine.wrap", "coroutine.yield", "debug.debug", "debug.getfenv", "debug.gethook", "debug.getinfo", "debug.getlocal", "debug.getmetatable", "debug.getregistry", "debug.getupvalue", "debug.setfenv", "debug.sethook", "debug.setlocal", "debug.setmetatable", "debug.setupvalue", "debug.traceback", "close", "flush", "lines", "read", "seek", "setvbuf", "write", "io.close", "io.flush", "io.input", "io.lines", "io.open", "io.output", "io.popen", "io.read", "io.stderr", "io.stdin", "io.stdout", "io.tmpfile", "io.type", "io.write", "math.abs", "math.acos", "math.asin", "math.atan", "math.atan2", "math.ceil", "math.cos", "math.cosh", "math.deg", "math.exp", "math.floor", "math.fmod", "math.frexp", "math.huge", "math.ldexp", "math.log", "math.log10", "math.max", "math.min", "math.modf", "math.pi", "math.pow", "math.rad", "math.random", "math.randomseed", "math.sin", "math.sinh", "math.sqrt", "math.tan", "math.tanh", "os.clock", "os.date", "os.difftime", "os.execute", "os.exit", "os.getenv", "os.remove", "os.rename", "os.setlocale", "os.time", "os.tmpname", "package.cpath", "package.loaded", "package.loaders", "package.loadlib", "package.path", "package.preload", "package.seeall", "string.byte", "string.char", "string.dump", "string.find", "string.format", "string.gmatch", "string.gsub", "string.len", "string.lower", "string.match", "string.rep", "string.reverse", "string.sub", "string.upper", "table.concat", "table.insert", "table.maxn", "table.remove", "table.sort"]),
            u = n(["and", "break", "elseif", "false", "nil", "not", "or", "return", "true", "function", "end", "if", "then", "else", "do", "while", "repeat", "until", "for", "in", "local"]),
            d = n(["function", "if", "repeat", "do", "\\(", "{"]), f = n(["end", "until", "\\)", "}"]),
            m = function (e) {
                return new RegExp("^(?:" + e.join("|") + ")", "i")
            }(["end", "until", "\\)", "}", "else", "elseif"]);
        return {
            startState: function (e) {
                return {basecol: e || 0, indentDepth: 0, cur: i}
            }, token: function (e, t) {
                if (e.eatSpace()) return null;
                var n = t.cur(e, t), r = e.current();
                return "variable" == n && (u.test(r) ? n = "keyword" : c.test(r) ? n = "builtin" : l.test(r) && (n = "variable-2")), "comment" != n && "string" != n && (d.test(r) ? ++t.indentDepth : f.test(r) && --t.indentDepth), n
            }, indent: function (e, t) {
                var n = m.test(t);
                return e.basecol + s * (e.indentDepth - (n ? 1 : 0))
            }, lineComment: "--", blockCommentStart: "--[[", blockCommentEnd: "]]"
        }
    }), e.defineMIME("text/x-lua", "lua")
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";
    e.defineMode("commonlisp", function (e) {
        function t(e) {
            for (var t; t = e.next();) if ("\\" == t) e.next(); else if (!c.test(t)) {
                e.backUp(1);
                break
            }
            return e.current()
        }

        function n(e, n) {
            if (e.eatSpace()) return a = "ws", null;
            if (e.match(l)) return "number";
            var c = e.next();
            if ("\\" == c && (c = e.next()), '"' == c) return (n.tokenize = r)(e, n);
            if ("(" == c) return a = "open", "bracket";
            if (")" == c || "]" == c) return a = "close", "bracket";
            if (";" == c) return e.skipToEnd(), a = "ws", "comment";
            if (/['`,@]/.test(c)) return null;
            if ("|" == c) return e.skipTo("|") ? (e.next(), "symbol") : (e.skipToEnd(), "error");
            if ("#" == c) return "(" == (c = e.next()) ? (a = "open", "bracket") : /[+\-=\.']/.test(c) ? null : /\d/.test(c) && e.match(/^\d*#/) ? null : "|" == c ? (n.tokenize = i)(e, n) : ":" == c ? (t(e), "meta") : "\\" == c ? (e.next(), t(e), "string-2") : "error";
            var u = t(e);
            return "." == u ? null : (a = "symbol", "nil" == u || "t" == u || ":" == u.charAt(0) ? "atom" : "open" == n.lastType && (o.test(u) || s.test(u)) ? "keyword" : "&" == u.charAt(0) ? "variable-2" : "variable")
        }

        function r(e, t) {
            for (var r, i = !1; r = e.next();) {
                if ('"' == r && !i) {
                    t.tokenize = n;
                    break
                }
                i = !i && "\\" == r
            }
            return "string"
        }

        function i(e, t) {
            for (var r, i; r = e.next();) {
                if ("#" == r && "|" == i) {
                    t.tokenize = n;
                    break
                }
                i = r
            }
            return a = "ws", "comment"
        }

        var a,
            o = /^(block|let*|return-from|catch|load-time-value|setq|eval-when|locally|symbol-macrolet|flet|macrolet|tagbody|function|multiple-value-call|the|go|multiple-value-prog1|throw|if|progn|unwind-protect|labels|progv|let|quote)$/,
            s = /^with|^def|^do|^prog|case$|^cond$|bind$|when$|unless$/,
            l = /^(?:[+\-]?(?:\d+|\d*\.\d+)(?:[efd][+\-]?\d+)?|[+\-]?\d+(?:\/[+\-]?\d+)?|#b[+\-]?[01]+|#o[+\-]?[0-7]+|#x[+\-]?[\da-f]+)/,
            c = /[^\s'`,@()\[\]";]/;
        return {
            startState: function () {
                return {ctx: {prev: null, start: 0, indentTo: 0}, lastType: null, tokenize: n}
            }, token: function (t, n) {
                t.sol() && "number" != typeof n.ctx.indentTo && (n.ctx.indentTo = n.ctx.start + 1), a = null;
                var r = n.tokenize(t, n);
                return "ws" != a && (null == n.ctx.indentTo ? "symbol" == a && s.test(t.current()) ? n.ctx.indentTo = n.ctx.start + e.indentUnit : n.ctx.indentTo = "next" : "next" == n.ctx.indentTo && (n.ctx.indentTo = t.column()), n.lastType = a), "open" == a ? n.ctx = {
                    prev: n.ctx,
                    start: t.column(),
                    indentTo: null
                } : "close" == a && (n.ctx = n.ctx.prev || n.ctx), r
            }, indent: function (e, t) {
                var n = e.ctx.indentTo;
                return "number" == typeof n ? n : e.ctx.start + 1
            }, closeBrackets: {pairs: '()[]{}""'}, lineComment: ";;", blockCommentStart: "#|", blockCommentEnd: "|#"
        }
    }), e.defineMIME("text/x-common-lisp", "commonlisp")
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";
    e.defineMode("pascal", function () {
        function e(e, o) {
            var s = e.next();
            if ("#" == s && o.startOfLine) return e.skipToEnd(), "meta";
            if ('"' == s || "'" == s) return o.tokenize = t(s), o.tokenize(e, o);
            if ("(" == s && e.eat("*")) return o.tokenize = n, n(e, o);
            if (/[\[\]{}\(\),;\:\.]/.test(s)) return null;
            if (/\d/.test(s)) return e.eatWhile(/[\w\.]/), "number";
            if ("/" == s && e.eat("/")) return e.skipToEnd(), "comment";
            if (a.test(s)) return e.eatWhile(a), "operator";
            e.eatWhile(/[\w\$_]/);
            var l = e.current();
            return r.propertyIsEnumerable(l) ? "keyword" : i.propertyIsEnumerable(l) ? "atom" : "variable"
        }

        function t(e) {
            return function (t, n) {
                for (var r, i = !1, a = !1; null != (r = t.next());) {
                    if (r == e && !i) {
                        a = !0;
                        break
                    }
                    i = !i && "\\" == r
                }
                return !a && i || (n.tokenize = null), "string"
            }
        }

        function n(e, t) {
            for (var n, r = !1; n = e.next();) {
                if (")" == n && r) {
                    t.tokenize = null;
                    break
                }
                r = "*" == n
            }
            return "comment"
        }

        var r = function (e) {
                for (var t = {}, n = e.split(" "), r = 0; r < n.length; ++r) t[n[r]] = !0;
                return t
            }("and array begin case const div do downto else end file for forward integer boolean char function goto if in label mod nil not of or packed procedure program record repeat set string then to type until var while with"),
            i = {null: !0}, a = /[+\-*&%=<>!?|\/]/;
        return {
            startState: function () {
                return {tokenize: null}
            }, token: function (t, n) {
                if (t.eatSpace()) return null;
                var r = (n.tokenize || e)(t, n);
                return r
            }, electricChars: "{}"
        }
    }), e.defineMIME("text/x-pascal", "pascal")
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";

    function t(e, t) {
        return e.string.charAt(e.pos + (t || 0))
    }

    function n(e, t) {
        if (t) {
            var n = e.pos - t;
            return e.string.substr(n >= 0 ? n : 0, t)
        }
        return e.string.substr(0, e.pos - 1)
    }

    function r(e, t) {
        var n = e.string.length, r = n - e.pos + 1;
        return e.string.substr(e.pos, t && t < n ? t : r)
    }

    function i(e, t) {
        var n, r = e.pos + t;
        r <= 0 ? e.pos = 0 : r >= (n = e.string.length - 1) ? e.pos = n : e.pos = r
    }

    e.defineMode("perl", function () {
        function e(e, t, n, r, i) {
            return t.chain = null, t.style = null, t.tail = null, t.tokenize = function (e, t) {
                for (var a, s = !1, l = 0; a = e.next();) {
                    if (a === n[l] && !s) return void 0 !== n[++l] ? (t.chain = n[l], t.style = r, t.tail = i) : i && e.eatWhile(i), t.tokenize = o, r;
                    s = !s && "\\" == a
                }
                return r
            }, t.tokenize(e, t)
        }

        function a(e, t, n) {
            return t.tokenize = function (e, t) {
                return e.string == n && (t.tokenize = o), e.skipToEnd(), "string"
            }, t.tokenize(e, t)
        }

        function o(o, u) {
            if (o.eatSpace()) return null;
            if (u.chain) return e(o, u, u.chain, u.style, u.tail);
            if (o.match(/^\-?[\d\.]/, !1) && o.match(/^(\-?(\d*\.\d+(e[+-]?\d+)?|\d+\.\d*)|0x[\da-fA-F]+|0b[01]+|\d+(e[+-]?\d+)?)/)) return "number";
            if (o.match(/^<<(?=\w)/)) return o.eatWhile(/\w/), a(o, u, o.current().substr(2));
            if (o.sol() && o.match(/^\=item(?!\w)/)) return a(o, u, "=cut");
            var d = o.next();
            if ('"' == d || "'" == d) {
                if (n(o, 3) == "<<" + d) {
                    h = o.pos;
                    o.eatWhile(/\w/);
                    var f = o.current().substr(1);
                    if (f && o.eat(d)) return a(o, u, f);
                    o.pos = h
                }
                return e(o, u, [d], "string")
            }
            if (!("q" != d || (m = t(o, -2)) && /\w/.test(m))) if ("x" == (m = t(o, 0))) {
                if ("(" == (m = t(o, 1))) return i(o, 2), e(o, u, [")"], l, c);
                if ("[" == m) return i(o, 2), e(o, u, ["]"], l, c);
                if ("{" == m) return i(o, 2), e(o, u, ["}"], l, c);
                if ("<" == m) return i(o, 2), e(o, u, [">"], l, c);
                if (/[\^'"!~\/]/.test(m)) return i(o, 1), e(o, u, [o.eat(m)], l, c)
            } else if ("q" == m) {
                if ("(" == (m = t(o, 1))) return i(o, 2), e(o, u, [")"], "string");
                if ("[" == m) return i(o, 2), e(o, u, ["]"], "string");
                if ("{" == m) return i(o, 2), e(o, u, ["}"], "string");
                if ("<" == m) return i(o, 2), e(o, u, [">"], "string");
                if (/[\^'"!~\/]/.test(m)) return i(o, 1), e(o, u, [o.eat(m)], "string")
            } else if ("w" == m) {
                if ("(" == (m = t(o, 1))) return i(o, 2), e(o, u, [")"], "bracket");
                if ("[" == m) return i(o, 2), e(o, u, ["]"], "bracket");
                if ("{" == m) return i(o, 2), e(o, u, ["}"], "bracket");
                if ("<" == m) return i(o, 2), e(o, u, [">"], "bracket");
                if (/[\^'"!~\/]/.test(m)) return i(o, 1), e(o, u, [o.eat(m)], "bracket")
            } else if ("r" == m) {
                if ("(" == (m = t(o, 1))) return i(o, 2), e(o, u, [")"], l, c);
                if ("[" == m) return i(o, 2), e(o, u, ["]"], l, c);
                if ("{" == m) return i(o, 2), e(o, u, ["}"], l, c);
                if ("<" == m) return i(o, 2), e(o, u, [">"], l, c);
                if (/[\^'"!~\/]/.test(m)) return i(o, 1), e(o, u, [o.eat(m)], l, c)
            } else if (/[\^'"!~\/(\[{<]/.test(m)) {
                if ("(" == m) return i(o, 1), e(o, u, [")"], "string");
                if ("[" == m) return i(o, 1), e(o, u, ["]"], "string");
                if ("{" == m) return i(o, 1), e(o, u, ["}"], "string");
                if ("<" == m) return i(o, 1), e(o, u, [">"], "string");
                if (/[\^'"!~\/]/.test(m)) return e(o, u, [o.eat(m)], "string")
            }
            if ("m" == d && (!(m = t(o, -2)) || !/\w/.test(m)) && (m = o.eat(/[(\[{<\^'"!~\/]/))) {
                if (/[\^'"!~\/]/.test(m)) return e(o, u, [m], l, c);
                if ("(" == m) return e(o, u, [")"], l, c);
                if ("[" == m) return e(o, u, ["]"], l, c);
                if ("{" == m) return e(o, u, ["}"], l, c);
                if ("<" == m) return e(o, u, [">"], l, c)
            }
            if ("s" == d && !(m = /[\/>\]})\w]/.test(t(o, -2))) && (m = o.eat(/[(\[{<\^'"!~\/]/))) return "[" == m ? e(o, u, ["]", "]"], l, c) : "{" == m ? e(o, u, ["}", "}"], l, c) : "<" == m ? e(o, u, [">", ">"], l, c) : "(" == m ? e(o, u, [")", ")"], l, c) : e(o, u, [m, m], l, c);
            if ("y" == d && !(m = /[\/>\]})\w]/.test(t(o, -2))) && (m = o.eat(/[(\[{<\^'"!~\/]/))) return "[" == m ? e(o, u, ["]", "]"], l, c) : "{" == m ? e(o, u, ["}", "}"], l, c) : "<" == m ? e(o, u, [">", ">"], l, c) : "(" == m ? e(o, u, [")", ")"], l, c) : e(o, u, [m, m], l, c);
            if ("t" == d && !(m = /[\/>\]})\w]/.test(t(o, -2))) && (m = o.eat("r")) && (m = o.eat(/[(\[{<\^'"!~\/]/))) return "[" == m ? e(o, u, ["]", "]"], l, c) : "{" == m ? e(o, u, ["}", "}"], l, c) : "<" == m ? e(o, u, [">", ">"], l, c) : "(" == m ? e(o, u, [")", ")"], l, c) : e(o, u, [m, m], l, c);
            if ("`" == d) return e(o, u, [d], "variable-2");
            if ("/" == d) return /~\s*$/.test(n(o)) ? e(o, u, [d], l, c) : "operator";
            if ("$" == d) {
                h = o.pos;
                if (o.eatWhile(/\d/) || o.eat("{") && o.eatWhile(/\d/) && o.eat("}")) return "variable-2";
                o.pos = h
            }
            if (/[$@%]/.test(d)) {
                h = o.pos;
                if (o.eat("^") && o.eat(/[A-Z]/) || !/[@$%&]/.test(t(o, -2)) && o.eat(/[=|\\\-#?@;:&`~\^!\[\]*'"$+.,\/<>()]/)) {
                    m = o.current();
                    if (s[m]) return "variable-2"
                }
                o.pos = h
            }
            if (/[$@%&]/.test(d) && (o.eatWhile(/[\w$\[\]]/) || o.eat("{") && o.eatWhile(/[\w$\[\]]/) && o.eat("}"))) {
                var m = o.current();
                return s[m] ? "variable-2" : "variable"
            }
            if ("#" == d && "$" != t(o, -2)) return o.skipToEnd(), "comment";
            if (/[:+\-\^*$&%@=<>!?|\/~\.]/.test(d)) {
                h = o.pos;
                if (o.eatWhile(/[:+\-\^*$&%@=<>!?|\/~\.]/), s[o.current()]) return "operator";
                o.pos = h
            }
            if ("_" == d && 1 == o.pos) {
                if ("_END__" == r(o, 6)) return e(o, u, ["\0"], "comment");
                if ("_DATA__" == r(o, 7)) return e(o, u, ["\0"], "variable-2");
                if ("_C__" == r(o, 7)) return e(o, u, ["\0"], "string")
            }
            if (/\w/.test(d)) {
                h = o.pos;
                if ("{" == t(o, -2) && ("}" == t(o, 0) || o.eatWhile(/\w/) && "}" == t(o, 0))) return "string";
                o.pos = h
            }
            if (/[A-Z]/.test(d)) {
                var p = t(o, -2), h = o.pos;
                if (o.eatWhile(/[A-Z_]/), !/[\da-z]/.test(t(o, 0))) return (m = s[o.current()]) ? (m[1] && (m = m[0]), ":" != p ? 1 == m ? "keyword" : 2 == m ? "def" : 3 == m ? "atom" : 4 == m ? "operator" : 5 == m ? "variable-2" : "meta" : "meta") : "meta";
                o.pos = h
            }
            if (/[a-zA-Z_]/.test(d)) {
                p = t(o, -2);
                return o.eatWhile(/\w/), (m = s[o.current()]) ? (m[1] && (m = m[0]), ":" != p ? 1 == m ? "keyword" : 2 == m ? "def" : 3 == m ? "atom" : 4 == m ? "operator" : 5 == m ? "variable-2" : "meta" : "meta") : "meta"
            }
            return null
        }

        var s = {
            "->": 4,
            "++": 4,
            "--": 4,
            "**": 4,
            "=~": 4,
            "!~": 4,
            "*": 4,
            "/": 4,
            "%": 4,
            x: 4,
            "+": 4,
            "-": 4,
            ".": 4,
            "<<": 4,
            ">>": 4,
            "<": 4,
            ">": 4,
            "<=": 4,
            ">=": 4,
            lt: 4,
            gt: 4,
            le: 4,
            ge: 4,
            "==": 4,
            "!=": 4,
            "<=>": 4,
            eq: 4,
            ne: 4,
            cmp: 4,
            "~~": 4,
            "&": 4,
            "|": 4,
            "^": 4,
            "&&": 4,
            "||": 4,
            "//": 4,
            "..": 4,
            "...": 4,
            "?": 4,
            ":": 4,
            "=": 4,
            "+=": 4,
            "-=": 4,
            "*=": 4,
            ",": 4,
            "=>": 4,
            "::": 4,
            not: 4,
            and: 4,
            or: 4,
            xor: 4,
            BEGIN: [5, 1],
            END: [5, 1],
            PRINT: [5, 1],
            PRINTF: [5, 1],
            GETC: [5, 1],
            READ: [5, 1],
            READLINE: [5, 1],
            DESTROY: [5, 1],
            TIE: [5, 1],
            TIEHANDLE: [5, 1],
            UNTIE: [5, 1],
            STDIN: 5,
            STDIN_TOP: 5,
            STDOUT: 5,
            STDOUT_TOP: 5,
            STDERR: 5,
            STDERR_TOP: 5,
            $ARG: 5,
            $_: 5,
            "@ARG": 5,
            "@_": 5,
            $LIST_SEPARATOR: 5,
            '$"': 5,
            $PROCESS_ID: 5,
            $PID: 5,
            $$: 5,
            $REAL_GROUP_ID: 5,
            $GID: 5,
            "$(": 5,
            $EFFECTIVE_GROUP_ID: 5,
            $EGID: 5,
            "$)": 5,
            $PROGRAM_NAME: 5,
            $0: 5,
            $SUBSCRIPT_SEPARATOR: 5,
            $SUBSEP: 5,
            "$;": 5,
            $REAL_USER_ID: 5,
            $UID: 5,
            "$<": 5,
            $EFFECTIVE_USER_ID: 5,
            $EUID: 5,
            "$>": 5,
            $a: 5,
            $b: 5,
            $COMPILING: 5,
            "$^C": 5,
            $DEBUGGING: 5,
            "$^D": 5,
            "${^ENCODING}": 5,
            $ENV: 5,
            "%ENV": 5,
            $SYSTEM_FD_MAX: 5,
            "$^F": 5,
            "@F": 5,
            "${^GLOBAL_PHASE}": 5,
            "$^H": 5,
            "%^H": 5,
            "@INC": 5,
            "%INC": 5,
            $INPLACE_EDIT: 5,
            "$^I": 5,
            "$^M": 5,
            $OSNAME: 5,
            "$^O": 5,
            "${^OPEN}": 5,
            $PERLDB: 5,
            "$^P": 5,
            $SIG: 5,
            "%SIG": 5,
            $BASETIME: 5,
            "$^T": 5,
            "${^TAINT}": 5,
            "${^UNICODE}": 5,
            "${^UTF8CACHE}": 5,
            "${^UTF8LOCALE}": 5,
            $PERL_VERSION: 5,
            "$^V": 5,
            "${^WIN32_SLOPPY_STAT}": 5,
            $EXECUTABLE_NAME: 5,
            "$^X": 5,
            $1: 5,
            $MATCH: 5,
            "$&": 5,
            "${^MATCH}": 5,
            $PREMATCH: 5,
            "$`": 5,
            "${^PREMATCH}": 5,
            $POSTMATCH: 5,
            "$'": 5,
            "${^POSTMATCH}": 5,
            $LAST_PAREN_MATCH: 5,
            "$+": 5,
            $LAST_SUBMATCH_RESULT: 5,
            "$^N": 5,
            "@LAST_MATCH_END": 5,
            "@+": 5,
            "%LAST_PAREN_MATCH": 5,
            "%+": 5,
            "@LAST_MATCH_START": 5,
            "@-": 5,
            "%LAST_MATCH_START": 5,
            "%-": 5,
            $LAST_REGEXP_CODE_RESULT: 5,
            "$^R": 5,
            "${^RE_DEBUG_FLAGS}": 5,
            "${^RE_TRIE_MAXBUF}": 5,
            $ARGV: 5,
            "@ARGV": 5,
            ARGV: 5,
            ARGVOUT: 5,
            $OUTPUT_FIELD_SEPARATOR: 5,
            $OFS: 5,
            "$,": 5,
            $INPUT_LINE_NUMBER: 5,
            $NR: 5,
            "$.": 5,
            $INPUT_RECORD_SEPARATOR: 5,
            $RS: 5,
            "$/": 5,
            $OUTPUT_RECORD_SEPARATOR: 5,
            $ORS: 5,
            "$\\": 5,
            $OUTPUT_AUTOFLUSH: 5,
            "$|": 5,
            $ACCUMULATOR: 5,
            "$^A": 5,
            $FORMAT_FORMFEED: 5,
            "$^L": 5,
            $FORMAT_PAGE_NUMBER: 5,
            "$%": 5,
            $FORMAT_LINES_LEFT: 5,
            "$-": 5,
            $FORMAT_LINE_BREAK_CHARACTERS: 5,
            "$:": 5,
            $FORMAT_LINES_PER_PAGE: 5,
            "$=": 5,
            $FORMAT_TOP_NAME: 5,
            "$^": 5,
            $FORMAT_NAME: 5,
            "$~": 5,
            "${^CHILD_ERROR_NATIVE}": 5,
            $EXTENDED_OS_ERROR: 5,
            "$^E": 5,
            $EXCEPTIONS_BEING_CAUGHT: 5,
            "$^S": 5,
            $WARNING: 5,
            "$^W": 5,
            "${^WARNING_BITS}": 5,
            $OS_ERROR: 5,
            $ERRNO: 5,
            "$!": 5,
            "%OS_ERROR": 5,
            "%ERRNO": 5,
            "%!": 5,
            $CHILD_ERROR: 5,
            "$?": 5,
            $EVAL_ERROR: 5,
            "$@": 5,
            $OFMT: 5,
            "$#": 5,
            "$*": 5,
            $ARRAY_BASE: 5,
            "$[": 5,
            $OLD_PERL_VERSION: 5,
            "$]": 5,
            if: [1, 1],
            elsif: [1, 1],
            else: [1, 1],
            while: [1, 1],
            unless: [1, 1],
            for: [1, 1],
            foreach: [1, 1],
            abs: 1,
            accept: 1,
            alarm: 1,
            atan2: 1,
            bind: 1,
            binmode: 1,
            bless: 1,
            bootstrap: 1,
            break: 1,
            caller: 1,
            chdir: 1,
            chmod: 1,
            chomp: 1,
            chop: 1,
            chown: 1,
            chr: 1,
            chroot: 1,
            close: 1,
            closedir: 1,
            connect: 1,
            continue: [1, 1],
            cos: 1,
            crypt: 1,
            dbmclose: 1,
            dbmopen: 1,
            default: 1,
            defined: 1,
            delete: 1,
            die: 1,
            do: 1,
            dump: 1,
            each: 1,
            endgrent: 1,
            endhostent: 1,
            endnetent: 1,
            endprotoent: 1,
            endpwent: 1,
            endservent: 1,
            eof: 1,
            eval: 1,
            exec: 1,
            exists: 1,
            exit: 1,
            exp: 1,
            fcntl: 1,
            fileno: 1,
            flock: 1,
            fork: 1,
            format: 1,
            formline: 1,
            getc: 1,
            getgrent: 1,
            getgrgid: 1,
            getgrnam: 1,
            gethostbyaddr: 1,
            gethostbyname: 1,
            gethostent: 1,
            getlogin: 1,
            getnetbyaddr: 1,
            getnetbyname: 1,
            getnetent: 1,
            getpeername: 1,
            getpgrp: 1,
            getppid: 1,
            getpriority: 1,
            getprotobyname: 1,
            getprotobynumber: 1,
            getprotoent: 1,
            getpwent: 1,
            getpwnam: 1,
            getpwuid: 1,
            getservbyname: 1,
            getservbyport: 1,
            getservent: 1,
            getsockname: 1,
            getsockopt: 1,
            given: 1,
            glob: 1,
            gmtime: 1,
            goto: 1,
            grep: 1,
            hex: 1,
            import: 1,
            index: 1,
            int: 1,
            ioctl: 1,
            join: 1,
            keys: 1,
            kill: 1,
            last: 1,
            lc: 1,
            lcfirst: 1,
            length: 1,
            link: 1,
            listen: 1,
            local: 2,
            localtime: 1,
            lock: 1,
            log: 1,
            lstat: 1,
            m: null,
            map: 1,
            mkdir: 1,
            msgctl: 1,
            msgget: 1,
            msgrcv: 1,
            msgsnd: 1,
            my: 2,
            new: 1,
            next: 1,
            no: 1,
            oct: 1,
            open: 1,
            opendir: 1,
            ord: 1,
            our: 2,
            pack: 1,
            package: 1,
            pipe: 1,
            pop: 1,
            pos: 1,
            print: 1,
            printf: 1,
            prototype: 1,
            push: 1,
            q: null,
            qq: null,
            qr: null,
            quotemeta: null,
            qw: null,
            qx: null,
            rand: 1,
            read: 1,
            readdir: 1,
            readline: 1,
            readlink: 1,
            readpipe: 1,
            recv: 1,
            redo: 1,
            ref: 1,
            rename: 1,
            require: 1,
            reset: 1,
            return: 1,
            reverse: 1,
            rewinddir: 1,
            rindex: 1,
            rmdir: 1,
            s: null,
            say: 1,
            scalar: 1,
            seek: 1,
            seekdir: 1,
            select: 1,
            semctl: 1,
            semget: 1,
            semop: 1,
            send: 1,
            setgrent: 1,
            sethostent: 1,
            setnetent: 1,
            setpgrp: 1,
            setpriority: 1,
            setprotoent: 1,
            setpwent: 1,
            setservent: 1,
            setsockopt: 1,
            shift: 1,
            shmctl: 1,
            shmget: 1,
            shmread: 1,
            shmwrite: 1,
            shutdown: 1,
            sin: 1,
            sleep: 1,
            socket: 1,
            socketpair: 1,
            sort: 1,
            splice: 1,
            split: 1,
            sprintf: 1,
            sqrt: 1,
            srand: 1,
            stat: 1,
            state: 1,
            study: 1,
            sub: 1,
            substr: 1,
            symlink: 1,
            syscall: 1,
            sysopen: 1,
            sysread: 1,
            sysseek: 1,
            system: 1,
            syswrite: 1,
            tell: 1,
            telldir: 1,
            tie: 1,
            tied: 1,
            time: 1,
            times: 1,
            tr: null,
            truncate: 1,
            uc: 1,
            ucfirst: 1,
            umask: 1,
            undef: 1,
            unlink: 1,
            unpack: 1,
            unshift: 1,
            untie: 1,
            use: 1,
            utime: 1,
            values: 1,
            vec: 1,
            wait: 1,
            waitpid: 1,
            wantarray: 1,
            warn: 1,
            when: 1,
            write: 1,
            y: null
        }, l = "string-2", c = /[goseximacplud]/;
        return {
            startState: function () {
                return {tokenize: o, chain: null, style: null, tail: null}
            }, token: function (e, t) {
                return (t.tokenize || o)(e, t)
            }, lineComment: "#"
        }
    }), e.registerHelper("wordChars", "perl", /[\w$]/), e.defineMIME("text/x-perl", "perl")
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror"), require("../htmlmixed/htmlmixed"), require("../clike/clike")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror", "../htmlmixed/htmlmixed", "../clike/clike"], e) : e(CodeMirror)
}(function (e) {
    "use strict";

    function t(e) {
        for (var t = {}, n = e.split(" "), r = 0; r < n.length; ++r) t[n[r]] = !0;
        return t
    }

    function n(e, t, i) {
        return 0 == e.length ? r(t) : function (a, o) {
            for (var s = e[0], l = 0; l < s.length; l++) if (a.match(s[l][0])) return o.tokenize = n(e.slice(1), t), s[l][1];
            return o.tokenize = r(t, i), "string"
        }
    }

    function r(e, t) {
        return function (n, r) {
            return i(n, r, e, t)
        }
    }

    function i(e, t, r, i) {
        if (!1 !== i && e.match("${", !1) || e.match("{$", !1)) return t.tokenize = null, "string";
        if (!1 !== i && e.match(/^\$[a-zA-Z_][a-zA-Z0-9_]*/)) return e.match("[", !1) && (t.tokenize = n([[["[", null]], [[/\d[\w\.]*/, "number"], [/\$[a-zA-Z_][a-zA-Z0-9_]*/, "variable-2"], [/[\w\$]+/, "variable"]], [["]", null]]], r, i)), e.match(/\-\>\w/, !1) && (t.tokenize = n([[["->", null]], [[/[\w]+/, "variable"]]], r, i)), "variable-2";
        for (var a = !1; !e.eol() && (a || !1 === i || !e.match("{$", !1) && !e.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/, !1));) {
            if (!a && e.match(r)) {
                t.tokenize = null, t.tokStack.pop(), t.tokStack.pop();
                break
            }
            a = "\\" == e.next() && !a
        }
        return "string"
    }

    var a = "abstract and array as break case catch class clone const continue declare default do else elseif enddeclare endfor endforeach endif endswitch endwhile extends final for foreach function global goto if implements interface instanceof namespace new or private protected public static switch throw trait try use var while xor die echo empty exit eval include include_once isset list require require_once return print unset __halt_compiler self static parent yield insteadof finally",
        o = "true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__",
        s = "func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents file_put_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists array_intersect_key array_combine array_column pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once json_decode json_encode json_last_error json_last_error_msg curl_close curl_copy_handle curl_errno curl_error curl_escape curl_exec curl_file_create curl_getinfo curl_init curl_multi_add_handle curl_multi_close curl_multi_exec curl_multi_getcontent curl_multi_info_read curl_multi_init curl_multi_remove_handle curl_multi_select curl_multi_setopt curl_multi_strerror curl_pause curl_reset curl_setopt_array curl_setopt curl_share_close curl_share_init curl_share_setopt curl_strerror curl_unescape curl_version mysqli_affected_rows mysqli_autocommit mysqli_change_user mysqli_character_set_name mysqli_close mysqli_commit mysqli_connect_errno mysqli_connect_error mysqli_connect mysqli_data_seek mysqli_debug mysqli_dump_debug_info mysqli_errno mysqli_error_list mysqli_error mysqli_fetch_all mysqli_fetch_array mysqli_fetch_assoc mysqli_fetch_field_direct mysqli_fetch_field mysqli_fetch_fields mysqli_fetch_lengths mysqli_fetch_object mysqli_fetch_row mysqli_field_count mysqli_field_seek mysqli_field_tell mysqli_free_result mysqli_get_charset mysqli_get_client_info mysqli_get_client_stats mysqli_get_client_version mysqli_get_connection_stats mysqli_get_host_info mysqli_get_proto_info mysqli_get_server_info mysqli_get_server_version mysqli_info mysqli_init mysqli_insert_id mysqli_kill mysqli_more_results mysqli_multi_query mysqli_next_result mysqli_num_fields mysqli_num_rows mysqli_options mysqli_ping mysqli_prepare mysqli_query mysqli_real_connect mysqli_real_escape_string mysqli_real_query mysqli_reap_async_query mysqli_refresh mysqli_rollback mysqli_select_db mysqli_set_charset mysqli_set_local_infile_default mysqli_set_local_infile_handler mysqli_sqlstate mysqli_ssl_set mysqli_stat mysqli_stmt_init mysqli_store_result mysqli_thread_id mysqli_thread_safe mysqli_use_result mysqli_warning_count";
    e.registerHelper("hintWords", "php", [a, o, s].join(" ").split(" ")), e.registerHelper("wordChars", "php", /[\w$]/);
    var l = {
        name: "clike",
        helperType: "php",
        keywords: t(a),
        blockKeywords: t("catch do else elseif for foreach if switch try while finally"),
        defKeywords: t("class function interface namespace trait"),
        atoms: t(o),
        builtin: t(s),
        multiLineStrings: !0,
        hooks: {
            $: function (e) {
                return e.eatWhile(/[\w\$_]/), "variable-2"
            }, "<": function (e, t) {
                var n;
                if (n = e.match(/<<\s*/)) {
                    var i = e.eat(/['"]/);
                    e.eatWhile(/[\w\.]/);
                    var a = e.current().slice(n[0].length + (i ? 2 : 1));
                    if (i && e.eat(i), a) return (t.tokStack || (t.tokStack = [])).push(a, 0), t.tokenize = r(a, "'" != i), "string"
                }
                return !1
            }, "#": function (e) {
                for (; !e.eol() && !e.match("?>", !1);) e.next();
                return "comment"
            }, "/": function (e) {
                if (e.eat("/")) {
                    for (; !e.eol() && !e.match("?>", !1);) e.next();
                    return "comment"
                }
                return !1
            }, '"': function (e, t) {
                return (t.tokStack || (t.tokStack = [])).push('"', 0), t.tokenize = r('"'), "string"
            }, "{": function (e, t) {
                return t.tokStack && t.tokStack.length && t.tokStack[t.tokStack.length - 1]++ , !1
            }, "}": function (e, t) {
                return t.tokStack && t.tokStack.length > 0 && !--t.tokStack[t.tokStack.length - 1] && (t.tokenize = r(t.tokStack[t.tokStack.length - 2])), !1
            }
        }
    };
    e.defineMode("php", function (t, n) {
        var r = e.getMode(t, "text/html"), i = e.getMode(t, l);
        return {
            startState: function () {
                var t = e.startState(r), a = n.startOpen ? e.startState(i) : null;
                return {html: t, php: a, curMode: n.startOpen ? i : r, curState: n.startOpen ? a : t, pending: null}
            }, copyState: function (t) {
                var n, a = t.html, o = e.copyState(r, a), s = t.php, l = s && e.copyState(i, s);
                return n = t.curMode == r ? o : l, {
                    html: o,
                    php: l,
                    curMode: t.curMode,
                    curState: n,
                    pending: t.pending
                }
            }, token: function (t, n) {
                var a = n.curMode == i;
                if (t.sol() && n.pending && '"' != n.pending && "'" != n.pending && (n.pending = null), a) return a && null == n.php.tokenize && t.match("?>") ? (n.curMode = r, n.curState = n.html, n.php.context.prev || (n.php = null), "meta") : i.token(t, n.curState);
                if (t.match(/^<\?\w*/)) return n.curMode = i, n.php || (n.php = e.startState(i, r.indent(n.html, ""))), n.curState = n.php, "meta";
                if ('"' == n.pending || "'" == n.pending) {
                    for (; !t.eol() && t.next() != n.pending;) ;
                    o = "string"
                } else if (n.pending && t.pos < n.pending.end) t.pos = n.pending.end, o = n.pending.style; else var o = r.token(t, n.curState);
                n.pending && (n.pending = null);
                var s, l = t.current(), c = l.search(/<\?/);
                return -1 != c && ("string" == o && (s = l.match(/[\'\"]$/)) && !/\?>/.test(l) ? n.pending = s[0] : n.pending = {
                    end: t.pos,
                    style: o
                }, t.backUp(l.length - c)), o
            }, indent: function (e, t) {
                return e.curMode != i && /^\s*<\//.test(t) || e.curMode == i && /^\?>/.test(t) ? r.indent(e.html, t) : e.curMode.indent(e.curState, t)
            }, blockCommentStart: "/*", blockCommentEnd: "*/", lineComment: "//", innerMode: function (e) {
                return {state: e.curState, mode: e.curMode}
            }
        }
    }, "htmlmixed", "clike"), e.defineMIME("application/x-httpd-php", "php"), e.defineMIME("application/x-httpd-php-open", {
        name: "php",
        startOpen: !0
    }), e.defineMIME("text/x-php", l)
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";

    function t(e) {
        return new RegExp("^((" + e.join(")|(") + "))\\b")
    }

    function n(e) {
        return e.scopes[e.scopes.length - 1]
    }

    var r = t(["and", "or", "not", "is"]),
        i = ["as", "assert", "break", "class", "continue", "def", "del", "elif", "else", "except", "finally", "for", "from", "global", "if", "import", "lambda", "pass", "raise", "return", "try", "while", "with", "yield", "in"],
        a = ["abs", "all", "any", "bin", "bool", "bytearray", "callable", "chr", "classmethod", "compile", "complex", "delattr", "dict", "dir", "divmod", "enumerate", "eval", "filter", "float", "format", "frozenset", "getattr", "globals", "hasattr", "hash", "help", "hex", "id", "input", "int", "isinstance", "issubclass", "iter", "len", "list", "locals", "map", "max", "memoryview", "min", "next", "object", "oct", "open", "ord", "pow", "property", "range", "repr", "reversed", "round", "set", "setattr", "slice", "sorted", "staticmethod", "str", "sum", "super", "tuple", "type", "vars", "zip", "__import__", "NotImplemented", "Ellipsis", "__debug__"];
    e.registerHelper("hintWords", "python", i.concat(a)), e.defineMode("python", function (o, s) {
        function l(e, t) {
            if (e.sol() && (t.indent = e.indentation()), e.sol() && "py" == n(t).type) {
                var r = n(t).offset;
                if (e.eatSpace()) {
                    var i = e.indentation();
                    return i > r ? d(t) : i < r && m(e, t) && "#" != e.peek() && (t.errorToken = !0), null
                }
                var a = c(e, t);
                return r > 0 && m(e, t) && (a += " " + h), a
            }
            return c(e, t)
        }

        function c(e, t) {
            if (e.eatSpace()) return null;
            if ("#" == e.peek()) return e.skipToEnd(), "comment";
            if (e.match(/^[0-9\.]/, !1)) {
                var n = !1;
                if (e.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i) && (n = !0), e.match(/^[\d_]+\.\d*/) && (n = !0), e.match(/^\.\d+/) && (n = !0), n) return e.eat(/J/i), "number";
                var i = !1;
                if (e.match(/^0x[0-9a-f_]+/i) && (i = !0), e.match(/^0b[01_]+/i) && (i = !0), e.match(/^0o[0-7_]+/i) && (i = !0), e.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/) && (e.eat(/J/i), i = !0), e.match(/^0(?![\dx])/i) && (i = !0), i) return e.eat(/L/i), "number"
            }
            return e.match(z) ? (t.tokenize = u(e.current()), t.tokenize(e, t)) : e.match(y) || e.match(_) ? "punctuation" : e.match(b) || e.match(S) ? "operator" : e.match(g) ? "punctuation" : "." == t.lastToken && e.match(E) ? "property" : e.match(M) || e.match(r) ? "keyword" : e.match(C) ? "builtin" : e.match(/^(self|cls)\b/) ? "variable-2" : e.match(E) ? "def" == t.lastToken || "class" == t.lastToken ? "def" : "variable" : (e.next(), h)
        }

        function u(e) {
            function t(t, i) {
                for (; !t.eol();) if (t.eatWhile(/[^'"\\]/), t.eat("\\")) {
                    if (t.next(), n && t.eol()) return r
                } else {
                    if (t.match(e)) return i.tokenize = l, r;
                    t.eat(/['"]/)
                }
                if (n) {
                    if (s.singleLineStringErrors) return h;
                    i.tokenize = l
                }
                return r
            }

            for (; "rubf".indexOf(e.charAt(0).toLowerCase()) >= 0;) e = e.substr(1);
            var n = 1 == e.length, r = "string";
            return t.isString = !0, t
        }

        function d(e) {
            for (; "py" != n(e).type;) e.scopes.pop();
            e.scopes.push({offset: n(e).offset + o.indentUnit, type: "py", align: null})
        }

        function f(e, t, n) {
            var r = e.match(/^([\s\[\{\(]|#.*)*$/, !1) ? null : e.column() + 1;
            t.scopes.push({offset: t.indent + k, type: n, align: r})
        }

        function m(e, t) {
            for (var r = e.indentation(); t.scopes.length > 1 && n(t).offset > r;) {
                if ("py" != n(t).type) return !0;
                t.scopes.pop()
            }
            return n(t).offset != r
        }

        function p(e, t) {
            e.sol() && (t.beginningOfLine = !0);
            var r = t.tokenize(e, t), i = e.current();
            if (t.beginningOfLine && "@" == i) return e.match(E, !1) ? "meta" : w ? "operator" : h;
            /\S/.test(i) && (t.beginningOfLine = !1), "variable" != r && "builtin" != r || "meta" != t.lastToken || (r = "meta"), "pass" != i && "return" != i || (t.dedent += 1), "lambda" == i && (t.lambda = !0), ":" != i || t.lambda || "py" != n(t).type || d(t);
            var a = 1 == i.length ? "[({".indexOf(i) : -1;
            if (-1 != a && f(e, t, "])}".slice(a, a + 1)), -1 != (a = "])}".indexOf(i))) {
                if (n(t).type != i) return h;
                t.indent = t.scopes.pop().offset - k
            }
            return t.dedent > 0 && e.eol() && "py" == n(t).type && (t.scopes.length > 1 && t.scopes.pop(), t.dedent -= 1), r
        }

        var h = "error", g = s.singleDelimiters || /^[\(\)\[\]\{\}@,:`=;\.]/,
            b = s.doubleOperators || /^([!<>]==|<>|<<|>>|\/\/|\*\*)/,
            _ = s.doubleDelimiters || /^(\+=|\-=|\*=|%=|\/=|&=|\|=|\^=)/,
            y = s.tripleDelimiters || /^(\/\/=|>>=|<<=|\*\*=)/, k = s.hangingIndent || o.indentUnit, v = i, x = a;
        void 0 != s.extra_keywords && (v = v.concat(s.extra_keywords)), void 0 != s.extra_builtins && (x = x.concat(s.extra_builtins));
        var w = !(s.version && Number(s.version) < 3);
        if (w) {
            var S = s.singleOperators || /^[\+\-\*\/%&|\^~<>!@]/,
                E = s.identifiers || /^[_A-Za-z\u00A1-\uFFFF][_A-Za-z0-9\u00A1-\uFFFF]*/;
            v = v.concat(["nonlocal", "False", "True", "None", "async", "await"]), x = x.concat(["ascii", "bytes", "exec", "print"]);
            z = new RegExp("^(([rbuf]|(br))?('{3}|\"{3}|['\"]))", "i")
        } else {
            var S = s.singleOperators || /^[\+\-\*\/%&|\^~<>!]/, E = s.identifiers || /^[_A-Za-z][_A-Za-z0-9]*/;
            v = v.concat(["exec", "print"]), x = x.concat(["apply", "basestring", "buffer", "cmp", "coerce", "execfile", "file", "intern", "long", "raw_input", "reduce", "reload", "unichr", "unicode", "xrange", "False", "True", "None"]);
            var z = new RegExp("^(([rubf]|(ur)|(br))?('{3}|\"{3}|['\"]))", "i")
        }
        var M = t(v), C = t(x);
        return {
            startState: function (e) {
                return {
                    tokenize: l,
                    scopes: [{offset: e || 0, type: "py", align: null}],
                    indent: e || 0,
                    lastToken: null,
                    lambda: !1,
                    dedent: 0
                }
            }, token: function (e, t) {
                var n = t.errorToken;
                n && (t.errorToken = !1);
                var r = p(e, t);
                return r && "comment" != r && (t.lastToken = "keyword" == r || "punctuation" == r ? e.current() : r), "punctuation" == r && (r = null), e.eol() && t.lambda && (t.lambda = !1), n ? r + " " + h : r
            }, indent: function (t, r) {
                if (t.tokenize != l) return t.tokenize.isString ? e.Pass : 0;
                var i = n(t), a = i.type == r.charAt(0);
                return null != i.align ? i.align - (a ? 1 : 0) : i.offset - (a ? k : 0)
            }, electricInput: /^\s*[\}\]\)]$/, closeBrackets: {triples: "'\""}, lineComment: "#", fold: "indent"
        }
    }), e.defineMIME("text/x-python", "python");
    e.defineMIME("text/x-cython", {
        name: "python", extra_keywords: function (e) {
            return e.split(" ")
        }("by cdef cimport cpdef ctypedef enum except extern gil include nogil property public readonly struct union DEF IF ELIF ELSE")
    })
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";
    e.defineMode("ruby", function (e) {
        function t(e) {
            for (var t = {}, n = 0, r = e.length; n < r; ++n) t[e[n]] = !0;
            return t
        }

        function n(e, t, n) {
            return n.tokenize.push(e), e(t, n)
        }

        function r(e, t) {
            if (e.sol() && e.match("=begin") && e.eol()) return t.tokenize.push(c), "comment";
            if (e.eatSpace()) return null;
            var r, a = e.next();
            if ("`" == a || "'" == a || '"' == a) return n(s(a, "string", '"' == a || "`" == a), e, t);
            if ("/" == a) return i(e) ? n(s(a, "string-2", !0), e, t) : "operator";
            if ("%" == a) {
                var o = "string", d = !0;
                e.eat("s") ? o = "atom" : e.eat(/[WQ]/) ? o = "string" : e.eat(/[r]/) ? o = "string-2" : e.eat(/[wxq]/) && (o = "string", d = !1);
                var f = e.eat(/[^\w\s=]/);
                return f ? (p.propertyIsEnumerable(f) && (f = p[f]), n(s(f, o, d, !0), e, t)) : "operator"
            }
            if ("#" == a) return e.skipToEnd(), "comment";
            if ("<" == a && (r = e.match(/^<-?[\`\"\']?([a-zA-Z_?]\w*)[\`\"\']?(?:;|$)/))) return n(l(r[1]), e, t);
            if ("0" == a) return e.eat("x") ? e.eatWhile(/[\da-fA-F]/) : e.eat("b") ? e.eatWhile(/[01]/) : e.eatWhile(/[0-7]/), "number";
            if (/\d/.test(a)) return e.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+\-]?[\d_]+)?/), "number";
            if ("?" == a) {
                for (; e.match(/^\\[CM]-/);) ;
                return e.eat("\\") ? e.eatWhile(/\w/) : e.next(), "string"
            }
            if (":" == a) return e.eat("'") ? n(s("'", "atom", !1), e, t) : e.eat('"') ? n(s('"', "atom", !0), e, t) : e.eat(/[\<\>]/) ? (e.eat(/[\<\>]/), "atom") : e.eat(/[\+\-\*\/\&\|\:\!]/) ? "atom" : e.eat(/[a-zA-Z$@_\xa1-\uffff]/) ? (e.eatWhile(/[\w$\xa1-\uffff]/), e.eat(/[\?\!\=]/), "atom") : "operator";
            if ("@" == a && e.match(/^@?[a-zA-Z_\xa1-\uffff]/)) return e.eat("@"), e.eatWhile(/[\w\xa1-\uffff]/), "variable-2";
            if ("$" == a) return e.eat(/[a-zA-Z_]/) ? e.eatWhile(/[\w]/) : e.eat(/\d/) ? e.eat(/\d/) : e.next(), "variable-3";
            if (/[a-zA-Z_\xa1-\uffff]/.test(a)) return e.eatWhile(/[\w\xa1-\uffff]/), e.eat(/[\?\!]/), e.eat(":") ? "atom" : "ident";
            if ("|" != a || !t.varList && "{" != t.lastTok && "do" != t.lastTok) {
                if (/[\(\)\[\]{}\\;]/.test(a)) return u = a, null;
                if ("-" == a && e.eat(">")) return "arrow";
                if (/[=+\-\/*:\.^%<>~|]/.test(a)) {
                    var m = e.eatWhile(/[=+\-\/*:\.^%<>~|]/);
                    return "." != a || m || (u = "."), "operator"
                }
                return null
            }
            return u = "|", null
        }

        function i(e) {
            for (var t, n = e.pos, r = 0, i = !1, a = !1; null != (t = e.next());) if (a) a = !1; else {
                if ("[{(".indexOf(t) > -1) r++; else if ("]})".indexOf(t) > -1) {
                    if (--r < 0) break
                } else if ("/" == t && 0 == r) {
                    i = !0;
                    break
                }
                a = "\\" == t
            }
            return e.backUp(e.pos - n), i
        }

        function a(e) {
            return e || (e = 1), function (t, n) {
                if ("}" == t.peek()) {
                    if (1 == e) return n.tokenize.pop(), n.tokenize[n.tokenize.length - 1](t, n);
                    n.tokenize[n.tokenize.length - 1] = a(e - 1)
                } else "{" == t.peek() && (n.tokenize[n.tokenize.length - 1] = a(e + 1));
                return r(t, n)
            }
        }

        function o() {
            var e = !1;
            return function (t, n) {
                return e ? (n.tokenize.pop(), n.tokenize[n.tokenize.length - 1](t, n)) : (e = !0, r(t, n))
            }
        }

        function s(e, t, n, r) {
            return function (i, s) {
                var l, c = !1;
                for ("read-quoted-paused" === s.context.type && (s.context = s.context.prev, i.eat("}")); null != (l = i.next());) {
                    if (l == e && (r || !c)) {
                        s.tokenize.pop();
                        break
                    }
                    if (n && "#" == l && !c) {
                        if (i.eat("{")) {
                            "}" == e && (s.context = {
                                prev: s.context,
                                type: "read-quoted-paused"
                            }), s.tokenize.push(a());
                            break
                        }
                        if (/[@\$]/.test(i.peek())) {
                            s.tokenize.push(o());
                            break
                        }
                    }
                    c = !c && "\\" == l
                }
                return t
            }
        }

        function l(e) {
            return function (t, n) {
                return t.match(e) ? n.tokenize.pop() : t.skipToEnd(), "string"
            }
        }

        function c(e, t) {
            return e.sol() && e.match("=end") && e.eol() && t.tokenize.pop(), e.skipToEnd(), "comment"
        }

        var u,
            d = t(["alias", "and", "BEGIN", "begin", "break", "case", "class", "def", "defined?", "do", "else", "elsif", "END", "end", "ensure", "false", "for", "if", "in", "module", "next", "not", "or", "redo", "rescue", "retry", "return", "self", "super", "then", "true", "undef", "unless", "until", "when", "while", "yield", "nil", "raise", "throw", "catch", "fail", "loop", "callcc", "caller", "lambda", "proc", "public", "protected", "private", "require", "load", "require_relative", "extend", "autoload", "__END__", "__FILE__", "__LINE__", "__dir__"]),
            f = t(["def", "class", "case", "for", "while", "until", "module", "then", "catch", "loop", "proc", "begin"]),
            m = t(["end", "until"]), p = {"[": "]", "{": "}", "(": ")"};
        return {
            startState: function () {
                return {
                    tokenize: [r],
                    indented: 0,
                    context: {type: "top", indented: -e.indentUnit},
                    continuedLine: !1,
                    lastTok: null,
                    varList: !1
                }
            }, token: function (e, t) {
                u = null, e.sol() && (t.indented = e.indentation());
                var n, r = t.tokenize[t.tokenize.length - 1](e, t), i = u;
                if ("ident" == r) {
                    var a = e.current();
                    "keyword" == (r = "." == t.lastTok ? "property" : d.propertyIsEnumerable(e.current()) ? "keyword" : /^[A-Z]/.test(a) ? "tag" : "def" == t.lastTok || "class" == t.lastTok || t.varList ? "def" : "variable") && (i = a, f.propertyIsEnumerable(a) ? n = "indent" : m.propertyIsEnumerable(a) ? n = "dedent" : "if" != a && "unless" != a || e.column() != e.indentation() ? "do" == a && t.context.indented < t.indented && (n = "indent") : n = "indent")
                }
                return (u || r && "comment" != r) && (t.lastTok = i), "|" == u && (t.varList = !t.varList), "indent" == n || /[\(\[\{]/.test(u) ? t.context = {
                    prev: t.context,
                    type: u || r,
                    indented: t.indented
                } : ("dedent" == n || /[\)\]\}]/.test(u)) && t.context.prev && (t.context = t.context.prev), e.eol() && (t.continuedLine = "\\" == u || "operator" == r), r
            }, indent: function (t, n) {
                if (t.tokenize[t.tokenize.length - 1] != r) return 0;
                var i = n && n.charAt(0), a = t.context,
                    o = a.type == p[i] || "keyword" == a.type && /^(?:end|until|else|elsif|when|rescue)\b/.test(n);
                return a.indented + (o ? 0 : e.indentUnit) + (t.continuedLine ? e.indentUnit : 0)
            }, electricInput: /^\s*(?:end|rescue|elsif|else|\})$/, lineComment: "#"
        }
    }), e.defineMIME("text/x-ruby", "ruby")
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";
    e.defineMode("shell", function () {
        function e(e, t) {
            for (var n = t.split(" "), r = 0; r < n.length; r++) i[n[r]] = e
        }

        function t(e, t) {
            if (e.eatSpace()) return null;
            var o = e.sol(), s = e.next();
            if ("\\" === s) return e.next(), null;
            if ("'" === s || '"' === s || "`" === s) return t.tokens.unshift(n(s, "`" === s ? "quote" : "string")), r(e, t);
            if ("#" === s) return o && e.eat("!") ? (e.skipToEnd(), "meta") : (e.skipToEnd(), "comment");
            if ("$" === s) return t.tokens.unshift(a), r(e, t);
            if ("+" === s || "=" === s) return "operator";
            if ("-" === s) return e.eat("-"), e.eatWhile(/\w/), "attribute";
            if (/\d/.test(s) && (e.eatWhile(/\d/), e.eol() || !/\w/.test(e.peek()))) return "number";
            e.eatWhile(/[\w-]/);
            var l = e.current();
            return "=" === e.peek() && /\w+/.test(l) ? "def" : i.hasOwnProperty(l) ? i[l] : null
        }

        function n(e, t) {
            var i = "(" == e ? ")" : "{" == e ? "}" : e;
            return function (o, s) {
                for (var l, c = !1, u = !1; null != (l = o.next());) {
                    if (l === i && !u) {
                        c = !0;
                        break
                    }
                    if ("$" === l && !u && "'" !== e) {
                        u = !0, o.backUp(1), s.tokens.unshift(a);
                        break
                    }
                    if (!u && l === e && e !== i) return s.tokens.unshift(n(e, t)), r(o, s);
                    u = !u && "\\" === l
                }
                return !c && u || s.tokens.shift(), t
            }
        }

        function r(e, n) {
            return (n.tokens[0] || t)(e, n)
        }

        var i = {};
        e("atom", "true false"), e("keyword", "if then do else elif while until for in esac fi fin fil done exit set unset export function"), e("builtin", "ab awk bash beep cat cc cd chown chmod chroot clear cp curl cut diff echo find gawk gcc get git grep kill killall ln ls make mkdir openssl mv nc node npm ping ps restart rm rmdir sed service sh shopt shred source sort sleep ssh start stop su sudo tee telnet top touch vi vim wall wc wget who write yes zsh");
        var a = function (e, t) {
            t.tokens.length > 1 && e.eat("$");
            var i = e.next();
            return /['"({]/.test(i) ? (t.tokens[0] = n(i, "(" == i ? "quote" : "{" == i ? "def" : "string"), r(e, t)) : (/\d/.test(i) || e.eatWhile(/\w/), t.tokens.shift(), "def")
        };
        return {
            startState: function () {
                return {tokens: []}
            }, token: function (e, t) {
                return r(e, t)
            }, closeBrackets: "()[]{}''\"\"``", lineComment: "#", fold: "brace"
        }
    }), e.defineMIME("text/x-sh", "shell")
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";
    e.defineMode("sql", function (t, n) {
        function r(e, t) {
            var n = e.next();
            if (!n) return null;
            if (p[n]) {
                var r = p[n](e, t);
                if (!1 !== r) return r
            }
            if (m.hexNumber && ("0" == n && e.match(/^[xX][0-9a-fA-F]+/) || ("x" == n || "X" == n) && e.match(/^'[0-9a-fA-F]+'/))) return "number";
            if (m.binaryNumber && (("b" == n || "B" == n) && e.match(/^'[01]+'/) || "0" == n && e.match(/^b[01]+/))) return "number";
            if (n.charCodeAt(0) > 47 && n.charCodeAt(0) < 58) return e.match(/^[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?/), m.decimallessFloat && e.eat("."), "number";
            if ("?" == n && (e.eatSpace() || e.eol() || e.eat(";"))) return "variable-3";
            if ("'" == n || '"' == n && m.doubleQuote) return t.tokenize = i(n), t.tokenize(e, t);
            if ((m.nCharCast && ("n" == n || "N" == n) || m.charsetCast && "_" == n && e.match(/[a-z][a-z0-9]*/i)) && ("'" == e.peek() || '"' == e.peek())) return "keyword";
            if (/^[\(\),\;\[\]]/.test(n)) return null;
            if (m.commentSlashSlash && "/" == n && e.eat("/")) return e.skipToEnd(), "comment";
            if (m.commentHash && "#" == n || "-" == n && e.eat("-") && (!m.commentSpaceRequired || e.eat(" "))) return e.skipToEnd(), "comment";
            if ("/" == n && e.eat("*")) return t.tokenize = a, t.tokenize(e, t);
            if ("." != n) {
                if (f.test(n)) return e.eatWhile(f), null;
                if ("{" == n && (e.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/) || e.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/))) return "number";
                e.eatWhile(/^[_\w\d]/);
                var o = e.current().toLowerCase();
                return h.hasOwnProperty(o) && (e.match(/^( )+'[^']*'/) || e.match(/^( )+"[^"]*"/)) ? "number" : c.hasOwnProperty(o) ? "atom" : u.hasOwnProperty(o) ? "builtin" : d.hasOwnProperty(o) ? "keyword" : l.hasOwnProperty(o) ? "string-2" : null
            }
            return m.zerolessFloat && e.match(/^(?:\d+(?:e[+-]?\d+)?)/i) ? "number" : m.ODBCdotTable && e.match(/^[a-zA-Z_]+/) ? "variable-2" : void 0
        }

        function i(e) {
            return function (t, n) {
                for (var i, a = !1; null != (i = t.next());) {
                    if (i == e && !a) {
                        n.tokenize = r;
                        break
                    }
                    a = !a && "\\" == i
                }
                return "string"
            }
        }

        function a(e, t) {
            for (; ;) {
                if (!e.skipTo("*")) {
                    e.skipToEnd();
                    break
                }
                if (e.next(), e.eat("/")) {
                    t.tokenize = r;
                    break
                }
            }
            return "comment"
        }

        function o(e, t, n) {
            t.context = {prev: t.context, indent: e.indentation(), col: e.column(), type: n}
        }

        function s(e) {
            e.indent = e.context.indent, e.context = e.context.prev
        }

        var l = n.client || {}, c = n.atoms || {false: !0, true: !0, null: !0}, u = n.builtin || {},
            d = n.keywords || {}, f = n.operatorChars || /^[*+\-%<>!=&|~^]/, m = n.support || {}, p = n.hooks || {},
            h = n.dateSQL || {date: !0, time: !0, timestamp: !0};
        return {
            startState: function () {
                return {tokenize: r, context: null}
            },
            token: function (e, t) {
                if (e.sol() && t.context && null == t.context.align && (t.context.align = !1), e.eatSpace()) return null;
                var n = t.tokenize(e, t);
                if ("comment" == n) return n;
                t.context && null == t.context.align && (t.context.align = !0);
                var r = e.current();
                return "(" == r ? o(e, t, ")") : "[" == r ? o(e, t, "]") : t.context && t.context.type == r && s(t), n
            },
            indent: function (n, r) {
                var i = n.context;
                if (!i) return e.Pass;
                var a = r.charAt(0) == i.type;
                return i.align ? i.col + (a ? 0 : 1) : i.indent + (a ? 0 : t.indentUnit)
            },
            blockCommentStart: "/*",
            blockCommentEnd: "*/",
            lineComment: m.commentSlashSlash ? "//" : m.commentHash ? "#" : null
        }
    }), function () {
        function t(e) {
            for (var t; null != (t = e.next());) if ("`" == t && !e.eat("`")) return "variable-2";
            return e.backUp(e.current().length - 1), e.eatWhile(/\w/) ? "variable-2" : null
        }

        function n(e) {
            return e.eat("@") && (e.match(/^session\./), e.match(/^local\./), e.match(/^global\./)), e.eat("'") ? (e.match(/^.*'/), "variable-2") : e.eat('"') ? (e.match(/^.*"/), "variable-2") : e.eat("`") ? (e.match(/^.*`/), "variable-2") : e.match(/^[0-9a-zA-Z$\.\_]+/) ? "variable-2" : null
        }

        function r(e) {
            return e.eat("N") ? "atom" : e.match(/^[a-zA-Z.#!?]/) ? "variable-2" : null
        }

        function i(e) {
            for (var t = {}, n = e.split(" "), r = 0; r < n.length; ++r) t[n[r]] = !0;
            return t
        }

        var a = "alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit ";
        e.defineMIME("text/x-sql", {
            name: "sql",
            keywords: i(a + "begin"),
            builtin: i("bool boolean bit blob enum long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision real date datetime year unsigned signed decimal numeric"),
            atoms: i("false true null unknown"),
            operatorChars: /^[*+\-%<>!=]/,
            dateSQL: i("date time timestamp"),
            support: i("ODBCdotTable doubleQuote binaryNumber hexNumber")
        }), e.defineMIME("text/x-mssql", {
            name: "sql",
            client: i("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),
            keywords: i(a + "begin trigger proc view index for add constraint key primary foreign collate clustered nonclustered declare exec"),
            builtin: i("bigint numeric bit smallint decimal smallmoney int tinyint money float real char varchar text nchar nvarchar ntext binary varbinary image cursor timestamp hierarchyid uniqueidentifier sql_variant xml table "),
            atoms: i("false true null unknown"),
            operatorChars: /^[*+\-%<>!=]/,
            dateSQL: i("date datetimeoffset datetime2 smalldatetime datetime time"),
            hooks: {"@": n}
        }), e.defineMIME("text/x-mysql", {
            name: "sql",
            client: i("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),
            keywords: i(a + "accessible action add after algorithm all analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general get global grant grants group group_concat handler hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show signal slave slow smallint snapshot soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),
            builtin: i("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),
            atoms: i("false true null unknown"),
            operatorChars: /^[*+\-%<>!=&|^]/,
            dateSQL: i("date time timestamp"),
            support: i("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),
            hooks: {"@": n, "`": t, "\\": r}
        }), e.defineMIME("text/x-mariadb", {
            name: "sql",
            client: i("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),
            keywords: i(a + "accessible action add after algorithm all always analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general generated get global grant grants group groupby_concat handler hard hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password persistent phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show shutdown signal slave slow smallint snapshot soft soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views virtual warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),
            builtin: i("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),
            atoms: i("false true null unknown"),
            operatorChars: /^[*+\-%<>!=&|^]/,
            dateSQL: i("date time timestamp"),
            support: i("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),
            hooks: {"@": n, "`": t, "\\": r}
        }), e.defineMIME("text/x-sqlite", {
            name: "sql",
            client: i("auth backup bail binary changes check clone databases dbinfo dump echo eqp exit explain fullschema headers help import imposter indexes iotrace limit lint load log mode nullvalue once open output print prompt quit read restore save scanstats schema separator session shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width"),
            keywords: i(a + "abort action add after all analyze attach autoincrement before begin cascade case cast check collate column commit conflict constraint cross current_date current_time current_timestamp database default deferrable deferred detach each else end escape except exclusive exists explain fail for foreign full glob if ignore immediate index indexed initially inner instead intersect isnull key left limit match natural no notnull null of offset outer plan pragma primary query raise recursive references regexp reindex release rename replace restrict right rollback row savepoint temp temporary then to transaction trigger unique using vacuum view virtual when with without"),
            builtin: i("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text clob bigint int int2 int8 integer float double char varchar date datetime year unsigned signed numeric real"),
            atoms: i("null current_date current_time current_timestamp"),
            operatorChars: /^[*+\-%<>!=&|/~]/,
            dateSQL: i("date time timestamp datetime"),
            support: i("decimallessFloat zerolessFloat"),
            identifierQuote: '"',
            hooks: {
                "@": n, ":": n, "?": n, $: n, '"': function (e) {
                    for (var t; null != (t = e.next());) if ('"' == t && !e.eat('"')) return "variable-2";
                    return e.backUp(e.current().length - 1), e.eatWhile(/\w/) ? "variable-2" : null
                }, "`": t
            }
        }), e.defineMIME("text/x-cassandra", {
            name: "sql",
            client: {},
            keywords: i("add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime"),
            builtin: i("ascii bigint blob boolean counter decimal double float frozen inet int list map static text timestamp timeuuid tuple uuid varchar varint"),
            atoms: i("false true infinity NaN"),
            operatorChars: /^[<>=]/,
            dateSQL: {},
            support: i("commentSlashSlash decimallessFloat"),
            hooks: {}
        }), e.defineMIME("text/x-plsql", {
            name: "sql",
            client: i("appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define describe echo editfile embedded escape exec execute feedback flagger flush heading headsep instance linesize lno loboffset logsource long longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar release repfooter repheader serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout time timing trimout trimspool ttitle underline verify version wrap"),
            keywords: i("abort accept access add all alter and any array arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body boolean by case cast char char_base check close cluster clusters colauth column comment commit compress connect connected constant constraint crash create current currval cursor data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry escape exception exception_init exchange exclusive exists exit external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging long loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base object of off offline on online only open option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw read rebuild record ref references refresh release rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate session set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work"),
            builtin: i("abs acos add_months ascii asin atan atan2 average bfile bfilename bigserial bit blob ceil character chartorowid chr clob concat convert cos cosh count dec decode deref dual dump dup_val_on_index empty error exp false float floor found glb greatest hextoraw initcap instr instrb int integer isopen last_day least length lengthb ln lower lpad ltrim lub make_ref max min mlslabel mod months_between natural naturaln nchar nclob new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower nls_sort nls_upper nlssort no_data_found notfound null number numeric nvarchar2 nvl others power rawtohex real reftohex round rowcount rowidtochar rowtype rpad rtrim serial sign signtype sin sinh smallint soundex sqlcode sqlerrm sqrt stddev string substr substrb sum sysdate tan tanh to_char text to_date to_label to_multi_byte to_number to_single_byte translate true trunc uid unlogged upper user userenv varchar varchar2 variance varying vsize xml"),
            operatorChars: /^[*+\-%<>!=~]/,
            dateSQL: i("date time timestamp"),
            support: i("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber")
        }), e.defineMIME("text/x-hive", {
            name: "sql",
            keywords: i("select alter $elem$ $key$ $value$ add after all analyze and archive as asc before between binary both bucket buckets by cascade case cast change cluster clustered clusterstatus collection column columns comment compute concatenate continue create cross cursor data database databases dbproperties deferred delete delimited desc describe directory disable distinct distribute drop else enable end escaped exclusive exists explain export extended external false fetch fields fileformat first format formatted from full function functions grant group having hold_ddltime idxproperties if import in index indexes inpath inputdriver inputformat insert intersect into is items join keys lateral left like limit lines load local location lock locks mapjoin materialized minus msck no_drop nocompress not of offline on option or order out outer outputdriver outputformat overwrite partition partitioned partitions percent plus preserve procedure purge range rcfile read readonly reads rebuild recordreader recordwriter recover reduce regexp rename repair replace restrict revoke right rlike row schema schemas semi sequencefile serde serdeproperties set shared show show_database sort sorted ssl statistics stored streamtable table tables tablesample tblproperties temporary terminated textfile then tmp to touch transform trigger true unarchive undo union uniquejoin unlock update use using utc utc_tmestamp view when where while with"),
            builtin: i("bool boolean long timestamp tinyint smallint bigint int float double date datetime unsigned string array struct map uniontype"),
            atoms: i("false true null unknown"),
            operatorChars: /^[*+\-%<>!=]/,
            dateSQL: i("date timestamp"),
            support: i("ODBCdotTable doubleQuote binaryNumber hexNumber")
        }), e.defineMIME("text/x-pgsql", {
            name: "sql",
            client: i("source"),
            keywords: i(a + "a abort abs absent absolute access according action ada add admin after aggregate all allocate also always analyse analyze any are array array_agg array_max_cardinality asensitive assertion assignment asymmetric at atomic attribute attributes authorization avg backward base64 before begin begin_frame begin_partition bernoulli binary bit_length blob blocked bom both breadth c cache call called cardinality cascade cascaded case cast catalog catalog_name ceil ceiling chain characteristics characters character_length character_set_catalog character_set_name character_set_schema char_length check checkpoint class class_origin clob close cluster coalesce cobol collate collation collation_catalog collation_name collation_schema collect column columns column_name command_function command_function_code comment comments commit committed concurrently condition condition_number configuration conflict connect connection connection_name constraint constraints constraint_catalog constraint_name constraint_schema constructor contains content continue control conversion convert copy corr corresponding cost covar_pop covar_samp cross csv cube cume_dist current current_catalog current_date current_default_transform_group current_path current_role current_row current_schema current_time current_timestamp current_transform_group_for_type current_user cursor cursor_name cycle data database datalink datetime_interval_code datetime_interval_precision day db deallocate dec declare default defaults deferrable deferred defined definer degree delimiter delimiters dense_rank depth deref derived describe descriptor deterministic diagnostics dictionary disable discard disconnect dispatch dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue do document domain dynamic dynamic_function dynamic_function_code each element else empty enable encoding encrypted end end-exec end_frame end_partition enforced enum equals escape event every except exception exclude excluding exclusive exec execute exists exp explain expression extension external extract false family fetch file filter final first first_value flag float floor following for force foreign fortran forward found frame_row free freeze fs full function functions fusion g general generated get global go goto grant granted greatest grouping groups handler header hex hierarchy hold hour id identity if ignore ilike immediate immediately immutable implementation implicit import including increment indent index indexes indicator inherit inherits initially inline inner inout input insensitive instance instantiable instead integrity intersect intersection invoker isnull isolation k key key_member key_type label lag language large last last_value lateral lead leading leakproof least left length level library like_regex link listen ln load local localtime localtimestamp location locator lock locked logged lower m map mapping match matched materialized max maxvalue max_cardinality member merge message_length message_octet_length message_text method min minute minvalue mod mode modifies module month more move multiset mumps name names namespace national natural nchar nclob nesting new next nfc nfd nfkc nfkd nil no none normalize normalized nothing notify notnull nowait nth_value ntile null nullable nullif nulls number object occurrences_regex octets octet_length of off offset oids old only open operator option options ordering ordinality others out outer output over overlaps overlay overriding owned owner p pad parameter parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partial partition pascal passing passthrough password percent percentile_cont percentile_disc percent_rank period permission placing plans pli policy portion position position_regex power precedes preceding prepare prepared preserve primary prior privileges procedural procedure program public quote range rank read reads reassign recheck recovery recursive ref references referencing refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex relative release rename repeatable replace replica requiring reset respect restart restore restrict result return returned_cardinality returned_length returned_octet_length returned_sqlstate returning returns revoke right role rollback rollup routine routine_catalog routine_name routine_schema row rows row_count row_number rule savepoint scale schema schema_name scope scope_catalog scope_name scope_schema scroll search second section security selective self sensitive sequence sequences serializable server server_name session session_user setof sets share show similar simple size skip snapshot some source space specific specifictype specific_name sql sqlcode sqlerror sqlexception sqlstate sqlwarning sqrt stable standalone start state statement static statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset substring substring_regex succeeds sum symmetric sysid system system_time system_user t tables tablesample tablespace table_name temp template temporary then ties timezone_hour timezone_minute to token top_level_count trailing transaction transactions_committed transactions_rolled_back transaction_active transform transforms translate translate_regex translation treat trigger trigger_catalog trigger_name trigger_schema trim trim_array true truncate trusted type types uescape unbounded uncommitted under unencrypted unique unknown unlink unlisten unlogged unnamed unnest until untyped upper uri usage user user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema using vacuum valid validate validator value value_of varbinary variadic var_pop var_samp verbose version versioning view views volatile when whenever whitespace width_bucket window within work wrapper write xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate year yes loop repeat"),
            builtin: i("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float8 inet integer int int4 interval json jsonb line lseg macaddr money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),
            atoms: i("false true null unknown"),
            operatorChars: /^[*+\-%<>!=&|^\/#@?~]/,
            dateSQL: i("date time timestamp"),
            support: i("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")
        }), e.defineMIME("text/x-gql", {
            name: "sql",
            keywords: i("ancestor and asc by contains desc descendant distinct from group has in is limit offset on order select superset where"),
            atoms: i("false true"),
            builtin: i("blob datetime first key __key__ string integer double boolean null"),
            operatorChars: /^[*+\-%<>!=]/
        })
    }()
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";
    e.defineMode("tiddlywiki", function () {
        function e(e, t, n) {
            return t.tokenize = n, n(e, t)
        }

        function t(t, u) {
            var v = t.sol(), x = t.peek();
            if (u.block = !1, v && /[<\/\*{}\-]/.test(x)) {
                if (t.match(k)) return u.block = !0, e(t, u, i);
                if (t.match(h)) return "quote";
                if (t.match(m) || t.match(p)) return "comment";
                if (t.match(g) || t.match(b) || t.match(_) || t.match(y)) return "comment";
                if (t.match(f)) return "hr"
            }
            if (t.next(), v && /[\/\*!#;:>|]/.test(x)) {
                if ("!" == x) return t.skipToEnd(), "header";
                if ("*" == x) return t.eatWhile("*"), "comment";
                if ("#" == x) return t.eatWhile("#"), "comment";
                if (";" == x) return t.eatWhile(";"), "comment";
                if (":" == x) return t.eatWhile(":"), "comment";
                if (">" == x) return t.eatWhile(">"), "quote";
                if ("|" == x) return "header"
            }
            if ("{" == x && t.match(/\{\{/)) return e(t, u, i);
            if (/[hf]/i.test(x) && /[ti]/i.test(t.peek()) && t.match(/\b(ttps?|tp|ile):\/\/[\-A-Z0-9+&@#\/%?=~_|$!:,.;]*[A-Z0-9+&@#\/%=~_|$]/i)) return "link";
            if ('"' == x) return "string";
            if ("~" == x) return "brace";
            if (/[\[\]]/.test(x) && t.match(x)) return "brace";
            if ("@" == x) return t.eatWhile(d), "link";
            if (/\d/.test(x)) return t.eatWhile(/\d/), "number";
            if ("/" == x) {
                if (t.eat("%")) return e(t, u, n);
                if (t.eat("/")) return e(t, u, a)
            }
            if ("_" == x && t.eat("_")) return e(t, u, o);
            if ("-" == x && t.eat("-")) {
                if (" " != t.peek()) return e(t, u, s);
                if (" " == t.peek()) return "brace"
            }
            return "'" == x && t.eat("'") ? e(t, u, r) : "<" == x && t.eat("<") ? e(t, u, l) : (t.eatWhile(/[\w\$_]/), c.propertyIsEnumerable(t.current()) ? "keyword" : null)
        }

        function n(e, n) {
            for (var r, i = !1; r = e.next();) {
                if ("/" == r && i) {
                    n.tokenize = t;
                    break
                }
                i = "%" == r
            }
            return "comment"
        }

        function r(e, n) {
            for (var r, i = !1; r = e.next();) {
                if ("'" == r && i) {
                    n.tokenize = t;
                    break
                }
                i = "'" == r
            }
            return "strong"
        }

        function i(e, n) {
            var r = n.block;
            return r && e.current() ? "comment" : !r && e.match(x) ? (n.tokenize = t, "comment") : r && e.sol() && e.match(v) ? (n.tokenize = t, "comment") : (e.next(), "comment")
        }

        function a(e, n) {
            for (var r, i = !1; r = e.next();) {
                if ("/" == r && i) {
                    n.tokenize = t;
                    break
                }
                i = "/" == r
            }
            return "em"
        }

        function o(e, n) {
            for (var r, i = !1; r = e.next();) {
                if ("_" == r && i) {
                    n.tokenize = t;
                    break
                }
                i = "_" == r
            }
            return "underlined"
        }

        function s(e, n) {
            for (var r, i = !1; r = e.next();) {
                if ("-" == r && i) {
                    n.tokenize = t;
                    break
                }
                i = "-" == r
            }
            return "strikethrough"
        }

        function l(e, n) {
            if ("<<" == e.current()) return "macro";
            var r = e.next();
            return r ? ">" == r && ">" == e.peek() ? (e.next(), n.tokenize = t, "macro") : (e.eatWhile(/[\w\$_]/), u.propertyIsEnumerable(e.current()) ? "keyword" : null) : (n.tokenize = t, null)
        }

        var c = {}, u = {
                allTags: !0,
                closeAll: !0,
                list: !0,
                newJournal: !0,
                newTiddler: !0,
                permaview: !0,
                saveChanges: !0,
                search: !0,
                slider: !0,
                tabs: !0,
                tag: !0,
                tagging: !0,
                tags: !0,
                tiddler: !0,
                timeline: !0,
                today: !0,
                version: !0,
                option: !0,
                with: !0,
                filter: !0
            }, d = /[\w_\-]/i, f = /^\-\-\-\-+$/, m = /^\/\*\*\*$/, p = /^\*\*\*\/$/, h = /^<<<$/, g = /^\/\/\{\{\{$/,
            b = /^\/\/\}\}\}$/, _ = /^<!--\{\{\{-->$/, y = /^<!--\}\}\}-->$/, k = /^\{\{\{$/, v = /^\}\}\}$/,
            x = /.*?\}\}\}/;
        return {
            startState: function () {
                return {tokenize: t}
            }, token: function (e, t) {
                return e.eatSpace() ? null : t.tokenize(e, t)
            }
        }
    }), e.defineMIME("text/x-tiddlywiki", "tiddlywiki")
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";
    e.defineMode("vb", function (t, n) {
        function r(e) {
            return new RegExp("^((" + e.join(")|(") + "))\\b", "i")
        }

        function i(e, t) {
            t.currentIndent++
        }

        function a(e, t) {
            t.currentIndent--
        }

        function o(e, t) {
            if (e.eatSpace()) return null;
            if ("'" === e.peek()) return e.skipToEnd(), "comment";
            if (e.match(/^((&H)|(&O))?[0-9\.a-f]/i, !1)) {
                var n = !1;
                if (e.match(/^\d*\.\d+F?/i) ? n = !0 : e.match(/^\d+\.\d*F?/) ? n = !0 : e.match(/^\.\d+F?/) && (n = !0), n) return e.eat(/J/i), "number";
                var r = !1;
                if (e.match(/^&H[0-9a-f]+/i) ? r = !0 : e.match(/^&O[0-7]+/i) ? r = !0 : e.match(/^[1-9]\d*F?/) ? (e.eat(/J/i), r = !0) : e.match(/^0(?![\dx])/i) && (r = !0), r) return e.eat(/L/i), "number"
            }
            return e.match(E) ? (t.tokenize = s(e.current()), t.tokenize(e, t)) : e.match(p) || e.match(m) ? null : e.match(f) || e.match(u) || e.match(k) ? "operator" : e.match(d) ? null : e.match(q) ? (i(e, t), t.doInCurrentLine = !0, "keyword") : e.match(z) ? (t.doInCurrentLine ? t.doInCurrentLine = !1 : i(e, t), "keyword") : e.match(M) ? "keyword" : e.match(T) ? (a(e, t), a(e, t), "keyword") : e.match(C) ? (a(e, t), "keyword") : e.match(S) ? "keyword" : e.match(w) ? "keyword" : e.match(h) ? "variable" : (e.next(), c)
        }

        function s(e) {
            var t = 1 == e.length;
            return function (r, i) {
                for (; !r.eol();) {
                    if (r.eatWhile(/[^'"]/), r.match(e)) return i.tokenize = o, "string";
                    r.eat(/['"]/)
                }
                if (t) {
                    if (n.singleLineStringErrors) return c;
                    i.tokenize = o
                }
                return "string"
            }
        }

        function l(e, t) {
            var n = t.tokenize(e, t), r = e.current();
            if ("." === r) return "variable" === (n = t.tokenize(e, t)) ? "variable" : c;
            var o = "[({".indexOf(r);
            return -1 !== o && i(e, t), "dedent" === I && a(e, t) ? c : -1 !== (o = "])}".indexOf(r)) && a(e, t) ? c : n
        }

        var c = "error", u = new RegExp("^[\\+\\-\\*/%&\\\\|\\^~<>!]"),
            d = new RegExp("^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]"),
            f = new RegExp("^((==)|(<>)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))"),
            m = new RegExp("^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))"),
            p = new RegExp("^((//=)|(>>=)|(<<=)|(\\*\\*=))"), h = new RegExp("^[_A-Za-z][_A-Za-z0-9]*"),
            g = ["class", "module", "sub", "enum", "select", "while", "if", "function", "get", "set", "property", "try"],
            b = ["else", "elseif", "case", "catch"], _ = ["next", "loop"], y = ["and", "or", "not", "xor", "in"],
            k = r(y),
            v = ["as", "dim", "break", "continue", "optional", "then", "until", "goto", "byval", "byref", "new", "handles", "property", "return", "const", "private", "protected", "friend", "public", "shared", "static", "true", "false"],
            x = ["integer", "string", "double", "decimal", "boolean", "short", "char", "float", "single"], w = r(v),
            S = r(x), E = '"', z = r(g), M = r(b), C = r(_), T = r(["end"]), q = r(["do"]), I = null;
        return e.registerHelper("hintWords", "vb", g.concat(b).concat(_).concat(y).concat(v).concat(x)), {
            electricChars: "dDpPtTfFeE ",
            startState: function () {
                return {tokenize: o, lastToken: null, currentIndent: 0, nextLineIndent: 0, doInCurrentLine: !1}
            },
            token: function (e, t) {
                e.sol() && (t.currentIndent += t.nextLineIndent, t.nextLineIndent = 0, t.doInCurrentLine = 0);
                var n = l(e, t);
                return t.lastToken = {style: n, content: e.current()}, n
            },
            indent: function (e, n) {
                var r = n.replace(/^\s+|\s+$/g, "");
                return r.match(C) || r.match(T) || r.match(M) ? t.indentUnit * (e.currentIndent - 1) : e.currentIndent < 0 ? 0 : e.currentIndent * t.indentUnit
            },
            lineComment: "'"
        }
    }), e.defineMIME("text/x-vb", "vb")
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";
    e.defineMode("vbscript", function (e, t) {
        function n(e) {
            return new RegExp("^((" + e.join(")|(") + "))\\b", "i")
        }

        function r(e, t) {
            t.currentIndent++
        }

        function i(e, t) {
            t.currentIndent--
        }

        function a(e, t) {
            if (e.eatSpace()) return "space";
            if ("'" === e.peek()) return e.skipToEnd(), "comment";
            if (e.match(O)) return e.skipToEnd(), "comment";
            if (e.match(/^((&H)|(&O))?[0-9\.]/i, !1) && !e.match(/^((&H)|(&O))?[0-9\.]+[a-z_]/i, !1)) {
                var n = !1;
                if (e.match(/^\d*\.\d+/i) ? n = !0 : e.match(/^\d+\.\d*/) ? n = !0 : e.match(/^\.\d+/) && (n = !0), n) return e.eat(/J/i), "number";
                var a = !1;
                if (e.match(/^&H[0-9a-f]+/i) ? a = !0 : e.match(/^&O[0-7]+/i) ? a = !0 : e.match(/^[1-9]\d*F?/) ? (e.eat(/J/i), a = !0) : e.match(/^0(?![\dx])/i) && (a = !0), a) return e.eat(/L/i), "number"
            }
            return e.match(j) ? (t.tokenize = o(e.current()), t.tokenize(e, t)) : e.match(u) || e.match(c) || e.match(b) ? "operator" : e.match(d) ? null : e.match(f) ? "bracket" : e.match(F) ? (t.doInCurrentLine = !0, "keyword") : e.match(D) ? (r(e, t), t.doInCurrentLine = !0, "keyword") : e.match($) ? (t.doInCurrentLine ? t.doInCurrentLine = !1 : r(e, t), "keyword") : e.match(P) ? "keyword" : e.match(R) ? (i(e, t), i(e, t), "keyword") : e.match(L) ? (t.doInCurrentLine ? t.doInCurrentLine = !1 : i(e, t), "keyword") : e.match(C) ? "keyword" : e.match(T) ? "atom" : e.match(A) ? "variable-2" : e.match(q) ? "builtin" : e.match(I) ? "variable-2" : e.match(m) ? "variable" : (e.next(), l)
        }

        function o(e) {
            var n = 1 == e.length;
            return function (r, i) {
                for (; !r.eol();) {
                    if (r.eatWhile(/[^'"]/), r.match(e)) return i.tokenize = a, "string";
                    r.eat(/['"]/)
                }
                if (n) {
                    if (t.singleLineStringErrors) return l;
                    i.tokenize = a
                }
                return "string"
            }
        }

        function s(e, t) {
            var n = t.tokenize(e, t), r = e.current();
            return "." === r ? (n = t.tokenize(e, t), r = e.current(), !n || "variable" !== n.substr(0, 8) && "builtin" !== n && "keyword" !== n ? l : ("builtin" !== n && "keyword" !== n || (n = "variable"), M.indexOf(r.substr(1)) > -1 && (n = "variable-2"), n)) : n
        }

        var l = "error", c = new RegExp("^[\\+\\-\\*/&\\\\\\^<>=]"), u = new RegExp("^((<>)|(<=)|(>=))"),
            d = new RegExp("^[\\.,]"), f = new RegExp("^[\\(\\)]"), m = new RegExp("^[A-Za-z][_A-Za-z0-9]*"),
            p = ["class", "sub", "select", "while", "if", "function", "property", "with", "for"],
            h = ["else", "elseif", "case"], g = ["next", "loop", "wend"],
            b = n(["and", "or", "not", "xor", "is", "mod", "eqv", "imp"]),
            _ = ["dim", "redim", "then", "until", "randomize", "byval", "byref", "new", "property", "exit", "in", "const", "private", "public", "get", "set", "let", "stop", "on error resume next", "on error goto 0", "option explicit", "call", "me"],
            y = ["true", "false", "nothing", "empty", "null"],
            k = ["abs", "array", "asc", "atn", "cbool", "cbyte", "ccur", "cdate", "cdbl", "chr", "cint", "clng", "cos", "csng", "cstr", "date", "dateadd", "datediff", "datepart", "dateserial", "datevalue", "day", "escape", "eval", "execute", "exp", "filter", "formatcurrency", "formatdatetime", "formatnumber", "formatpercent", "getlocale", "getobject", "getref", "hex", "hour", "inputbox", "instr", "instrrev", "int", "fix", "isarray", "isdate", "isempty", "isnull", "isnumeric", "isobject", "join", "lbound", "lcase", "left", "len", "loadpicture", "log", "ltrim", "rtrim", "trim", "maths", "mid", "minute", "month", "monthname", "msgbox", "now", "oct", "replace", "rgb", "right", "rnd", "round", "scriptengine", "scriptenginebuildversion", "scriptenginemajorversion", "scriptengineminorversion", "second", "setlocale", "sgn", "sin", "space", "split", "sqr", "strcomp", "string", "strreverse", "tan", "time", "timer", "timeserial", "timevalue", "typename", "ubound", "ucase", "unescape", "vartype", "weekday", "weekdayname", "year"],
            v = ["vbBlack", "vbRed", "vbGreen", "vbYellow", "vbBlue", "vbMagenta", "vbCyan", "vbWhite", "vbBinaryCompare", "vbTextCompare", "vbSunday", "vbMonday", "vbTuesday", "vbWednesday", "vbThursday", "vbFriday", "vbSaturday", "vbUseSystemDayOfWeek", "vbFirstJan1", "vbFirstFourDays", "vbFirstFullWeek", "vbGeneralDate", "vbLongDate", "vbShortDate", "vbLongTime", "vbShortTime", "vbObjectError", "vbOKOnly", "vbOKCancel", "vbAbortRetryIgnore", "vbYesNoCancel", "vbYesNo", "vbRetryCancel", "vbCritical", "vbQuestion", "vbExclamation", "vbInformation", "vbDefaultButton1", "vbDefaultButton2", "vbDefaultButton3", "vbDefaultButton4", "vbApplicationModal", "vbSystemModal", "vbOK", "vbCancel", "vbAbort", "vbRetry", "vbIgnore", "vbYes", "vbNo", "vbCr", "VbCrLf", "vbFormFeed", "vbLf", "vbNewLine", "vbNullChar", "vbNullString", "vbTab", "vbVerticalTab", "vbUseDefault", "vbTrue", "vbFalse", "vbEmpty", "vbNull", "vbInteger", "vbLong", "vbSingle", "vbDouble", "vbCurrency", "vbDate", "vbString", "vbObject", "vbError", "vbBoolean", "vbVariant", "vbDataObject", "vbDecimal", "vbByte", "vbArray"],
            x = ["WScript", "err", "debug", "RegExp"],
            w = ["description", "firstindex", "global", "helpcontext", "helpfile", "ignorecase", "length", "number", "pattern", "source", "value", "count"],
            S = ["server", "response", "request", "session", "application"],
            E = ["buffer", "cachecontrol", "charset", "contenttype", "expires", "expiresabsolute", "isclientconnected", "pics", "status", "clientcertificate", "cookies", "form", "querystring", "servervariables", "totalbytes", "contents", "staticobjects", "codepage", "lcid", "sessionid", "timeout", "scripttimeout"],
            z = ["addheader", "appendtolog", "binarywrite", "end", "flush", "redirect", "binaryread", "remove", "removeall", "lock", "unlock", "abandon", "getlasterror", "htmlencode", "mappath", "transfer", "urlencode"],
            M = ["clear", "execute", "raise", "replace", "test", "write", "writeline", "close", "open", "state", "eof", "update", "addnew", "end", "createobject", "quit"].concat(w);
        x = x.concat(v), e.isASP && (x = x.concat(S), M = M.concat(z, E));
        var C = n(_), T = n(y), q = n(k), I = n(x), A = n(M), j = '"', $ = n(p), P = n(h), L = n(g), R = n(["end"]),
            D = n(["do"]), F = n(["on error resume next", "exit"]), O = n(["rem"]);
        return {
            electricChars: "dDpPtTfFeE ", startState: function () {
                return {
                    tokenize: a,
                    lastToken: null,
                    currentIndent: 0,
                    nextLineIndent: 0,
                    doInCurrentLine: !1,
                    ignoreKeyword: !1
                }
            }, token: function (e, t) {
                e.sol() && (t.currentIndent += t.nextLineIndent, t.nextLineIndent = 0, t.doInCurrentLine = 0);
                var n = s(e, t);
                return t.lastToken = {style: n, content: e.current()}, "space" === n && (n = null), n
            }, indent: function (t, n) {
                var r = n.replace(/^\s+|\s+$/g, "");
                return r.match(L) || r.match(R) || r.match(P) ? e.indentUnit * (t.currentIndent - 1) : t.currentIndent < 0 ? 0 : t.currentIndent * e.indentUnit
            }
        }
    }), e.defineMIME("text/vbscript", "vbscript")
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";
    e.defineMode("velocity", function () {
        function e(e) {
            for (var t = {}, n = e.split(" "), r = 0; r < n.length; ++r) t[n[r]] = !0;
            return t
        }

        function t(e, t, n) {
            return t.tokenize = n, n(e, t)
        }

        function n(e, n) {
            var u = n.beforeParams;
            n.beforeParams = !1;
            var d = e.next();
            if ("'" == d && !n.inString && n.inParams) return n.lastTokenWasBuiltin = !1, t(e, n, r(d));
            if ('"' != d) {
                if (/[\[\]{}\(\),;\.]/.test(d)) return "(" == d && u ? n.inParams = !0 : ")" == d && (n.inParams = !1, n.lastTokenWasBuiltin = !0), null;
                if (/\d/.test(d)) return n.lastTokenWasBuiltin = !1, e.eatWhile(/[\w\.]/), "number";
                if ("#" == d && e.eat("*")) return n.lastTokenWasBuiltin = !1, t(e, n, i);
                if ("#" == d && e.match(/ *\[ *\[/)) return n.lastTokenWasBuiltin = !1, t(e, n, a);
                if ("#" == d && e.eat("#")) return n.lastTokenWasBuiltin = !1, e.skipToEnd(), "comment";
                if ("$" == d) return e.eatWhile(/[\w\d\$_\.{}]/), l && l.propertyIsEnumerable(e.current()) ? "keyword" : (n.lastTokenWasBuiltin = !0, n.beforeParams = !0, "builtin");
                if (c.test(d)) return n.lastTokenWasBuiltin = !1, e.eatWhile(c), "operator";
                e.eatWhile(/[\w\$_{}@]/);
                var f = e.current();
                return o && o.propertyIsEnumerable(f) ? "keyword" : s && s.propertyIsEnumerable(f) || e.current().match(/^#@?[a-z0-9_]+ *$/i) && "(" == e.peek() && (!s || !s.propertyIsEnumerable(f.toLowerCase())) ? (n.beforeParams = !0, n.lastTokenWasBuiltin = !1, "keyword") : n.inString ? (n.lastTokenWasBuiltin = !1, "string") : e.pos > f.length && "." == e.string.charAt(e.pos - f.length - 1) && n.lastTokenWasBuiltin ? "builtin" : (n.lastTokenWasBuiltin = !1, null)
            }
            return n.lastTokenWasBuiltin = !1, n.inString ? (n.inString = !1, "string") : n.inParams ? t(e, n, r(d)) : void 0
        }

        function r(e) {
            return function (t, r) {
                for (var i, a = !1, o = !1; null != (i = t.next());) {
                    if (i == e && !a) {
                        o = !0;
                        break
                    }
                    if ('"' == e && "$" == t.peek() && !a) {
                        r.inString = !0, o = !0;
                        break
                    }
                    a = !a && "\\" == i
                }
                return o && (r.tokenize = n), "string"
            }
        }

        function i(e, t) {
            for (var r, i = !1; r = e.next();) {
                if ("#" == r && i) {
                    t.tokenize = n;
                    break
                }
                i = "*" == r
            }
            return "comment"
        }

        function a(e, t) {
            for (var r, i = 0; r = e.next();) {
                if ("#" == r && 2 == i) {
                    t.tokenize = n;
                    break
                }
                "]" == r ? i++ : " " != r && (i = 0)
            }
            return "meta"
        }

        var o = e("#end #else #break #stop #[[ #]] #{end} #{else} #{break} #{stop}"),
            s = e("#if #elseif #foreach #set #include #parse #macro #define #evaluate #{if} #{elseif} #{foreach} #{set} #{include} #{parse} #{macro} #{define} #{evaluate}"),
            l = e("$foreach.count $foreach.hasNext $foreach.first $foreach.last $foreach.topmost $foreach.parent.count $foreach.parent.hasNext $foreach.parent.first $foreach.parent.last $foreach.parent $velocityCount $!bodyContent $bodyContent"),
            c = /[+\-*&%=<>!?:\/|]/;
        return {
            startState: function () {
                return {tokenize: n, beforeParams: !1, inParams: !1, inString: !1, lastTokenWasBuiltin: !1}
            }, token: function (e, t) {
                return e.eatSpace() ? null : t.tokenize(e, t)
            }, blockCommentStart: "#*", blockCommentEnd: "*#", lineComment: "##", fold: "velocity"
        }
    }), e.defineMIME("text/velocity", "velocity")
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    function t(e, t, n) {
        var r = t / a;
        return "tlv-" + e.tlvIndentationStyle[r] + "-" + n
    }

    function n(e) {
        var t;
        return (t = e.match(o, !1)) && t[2].length > 0
    }

    e.defineMode("verilog", function (t, n) {
        "use strict";

        function r(e) {
            for (var t = {}, n = e.split(" "), r = 0; r < n.length; ++r) t[n[r]] = !0;
            return t
        }

        function i(e, t) {
            var n, r = e.peek();
            if (_[r] && 0 != (n = _[r](e, t))) return n;
            if (_.tokenBase && 0 != (n = _.tokenBase(e, t))) return n;
            if (/[,;:\.]/.test(r)) return d = e.next(), null;
            if (v.test(r)) return d = e.next(), "bracket";
            if ("`" == r) return e.next(), e.eatWhile(/[\w\$_]/) ? "def" : null;
            if ("$" == r) return e.next(), e.eatWhile(/[\w\$_]/) ? "meta" : null;
            if ("#" == r) return e.next(), e.eatWhile(/[\d_.]/), "def";
            if ('"' == r) return e.next(), t.tokenize = a(r), t.tokenize(e, t);
            if ("/" == r) {
                if (e.next(), e.eat("*")) return t.tokenize = o, o(e, t);
                if (e.eat("/")) return e.skipToEnd(), "comment";
                e.backUp(1)
            }
            if (e.match(M) || e.match(w) || e.match(S) || e.match(E) || e.match(z) || e.match(x) || e.match(M)) return "number";
            if (e.eatWhile(k)) return "meta";
            if (e.eatWhile(/[\w\$_]/)) {
                var i = e.current();
                return y[i] ? (I[i] && (d = "newblock"), $[i] && (d = "newstatement"), f = i, "keyword") : "variable"
            }
            return e.next(), null
        }

        function a(e) {
            return function (t, n) {
                for (var r, a = !1, o = !1; null != (r = t.next());) {
                    if (r == e && !a) {
                        o = !0;
                        break
                    }
                    a = !a && "\\" == r
                }
                return (o || !a && !b) && (n.tokenize = i), "string"
            }
        }

        function o(e, t) {
            for (var n, r = !1; n = e.next();) {
                if ("/" == n && r) {
                    t.tokenize = i;
                    break
                }
                r = "*" == n
            }
            return "comment"
        }

        function s(e, t, n, r, i) {
            this.indented = e, this.column = t, this.type = n, this.align = r, this.prev = i
        }

        function l(e, t, n) {
            var r = new s(e.indented, t, n, null, e.context);
            return e.context = r
        }

        function c(e) {
            var t = e.context.type;
            return ")" != t && "]" != t && "}" != t || (e.indented = e.context.indented), e.context = e.context.prev
        }

        function u(e, t) {
            if (e == t) return !0;
            var n = t.split(";");
            for (var r in n) if (e == n[r]) return !0;
            return !1
        }

        var d, f, m = t.indentUnit, p = n.statementIndentUnit || m, h = n.dontAlignCalls, g = n.noIndentKeywords || [],
            b = n.multiLineStrings, _ = n.hooks || {},
            y = r("accept_on alias always always_comb always_ff always_latch and assert assign assume automatic before begin bind bins binsof bit break buf bufif0 bufif1 byte case casex casez cell chandle checker class clocking cmos config const constraint context continue cover covergroup coverpoint cross deassign default defparam design disable dist do edge else end endcase endchecker endclass endclocking endconfig endfunction endgenerate endgroup endinterface endmodule endpackage endprimitive endprogram endproperty endspecify endsequence endtable endtask enum event eventually expect export extends extern final first_match for force foreach forever fork forkjoin function generate genvar global highz0 highz1 if iff ifnone ignore_bins illegal_bins implements implies import incdir include initial inout input inside instance int integer interconnect interface intersect join join_any join_none large let liblist library local localparam logic longint macromodule matches medium modport module nand negedge nettype new nexttime nmos nor noshowcancelled not notif0 notif1 null or output package packed parameter pmos posedge primitive priority program property protected pull0 pull1 pulldown pullup pulsestyle_ondetect pulsestyle_onevent pure rand randc randcase randsequence rcmos real realtime ref reg reject_on release repeat restrict return rnmos rpmos rtran rtranif0 rtranif1 s_always s_eventually s_nexttime s_until s_until_with scalared sequence shortint shortreal showcancelled signed small soft solve specify specparam static string strong strong0 strong1 struct super supply0 supply1 sync_accept_on sync_reject_on table tagged task this throughout time timeprecision timeunit tran tranif0 tranif1 tri tri0 tri1 triand trior trireg type typedef union unique unique0 unsigned until until_with untyped use uwire var vectored virtual void wait wait_order wand weak weak0 weak1 while wildcard wire with within wor xnor xor"),
            k = /[\+\-\*\/!~&|^%=?:]/, v = /[\[\]{}()]/, x = /\d[0-9_]*/, w = /\d*\s*'s?d\s*\d[0-9_]*/i,
            S = /\d*\s*'s?b\s*[xz01][xz01_]*/i, E = /\d*\s*'s?o\s*[xz0-7][xz0-7_]*/i,
            z = /\d*\s*'s?h\s*[0-9a-fxz?][0-9a-fxz?_]*/i, M = /(\d[\d_]*(\.\d[\d_]*)?E-?[\d_]+)|(\d[\d_]*\.\d[\d_]*)/i,
            C = /^((\w+)|[)}\]])/, T = /[)}\]]/,
            q = r("case checker class clocking config function generate interface module package primitive program property specify sequence table task"),
            I = {};
        for (var A in q) I[A] = "end" + A;
        I.begin = "end", I.casex = "endcase", I.casez = "endcase", I.do = "while", I.fork = "join;join_any;join_none", I.covergroup = "endgroup";
        for (var j in g) I[A = g[j]] && (I[A] = void 0);
        var $ = r("always always_comb always_ff always_latch assert assign assume else export for foreach forever if import initial repeat while");
        return {
            electricInput: function () {
                var e = [];
                for (var t in I) I[t] && I[t].split(";").forEach(function (t) {
                    e.push(t)
                });
                return new RegExp("[{}()\\[\\]]|(" + e.join("|") + ")$")
            }(), startState: function (e) {
                var t = {tokenize: null, context: new s((e || 0) - m, 0, "top", !1), indented: 0, startOfLine: !0};
                return _.startState && _.startState(t), t
            }, token: function (e, t) {
                var n = t.context;
                if (e.sol() && (null == n.align && (n.align = !1), t.indented = e.indentation(), t.startOfLine = !0), _.token && void 0 !== (r = _.token(e, t))) return r;
                if (e.eatSpace()) return null;
                d = null, f = null;
                var r = (t.tokenize || i)(e, t);
                if ("comment" == r || "meta" == r || "variable" == r) return r;
                if (null == n.align && (n.align = !0), d == n.type) c(t); else if (";" == d && "statement" == n.type || n.type && u(f, n.type)) for (n = c(t); n && "statement" == n.type;) n = c(t); else if ("{" == d) l(t, e.column(), "}"); else if ("[" == d) l(t, e.column(), "]"); else if ("(" == d) l(t, e.column(), ")"); else if (n && "endcase" == n.type && ":" == d) l(t, e.column(), "statement"); else if ("newstatement" == d) l(t, e.column(), "statement"); else if ("newblock" == d) if ("function" != f || !n || "statement" != n.type && "endgroup" != n.type) if ("task" == f && n && "statement" == n.type) ; else {
                    var a = I[f];
                    l(t, e.column(), a)
                } else ;
                return t.startOfLine = !1, r
            }, indent: function (t, n) {
                if (t.tokenize != i && null != t.tokenize) return e.Pass;
                if (_.indent) {
                    var r = _.indent(t);
                    if (r >= 0) return r
                }
                var a = t.context, o = n && n.charAt(0);
                "statement" == a.type && "}" == o && (a = a.prev);
                var s = !1, l = n.match(C);
                return l && (s = u(l[0], a.type)), "statement" == a.type ? a.indented + ("{" == o ? 0 : p) : T.test(a.type) && a.align && !h ? a.column + (s ? 0 : 1) : ")" != a.type || s ? a.indented + (s ? 0 : m) : a.indented + p
            }, blockCommentStart: "/*", blockCommentEnd: "*/", lineComment: "//"
        }
    }), e.defineMIME("text/x-verilog", {name: "verilog"}), e.defineMIME("text/x-systemverilog", {name: "verilog"});
    var r = {
        "|": "link",
        ">": "property",
        $: "variable",
        $$: "variable",
        "?$": "qualifier",
        "?*": "qualifier",
        "-": "hr",
        "/": "property",
        "/-": "property",
        "@": "variable-3",
        "@-": "variable-3",
        "@++": "variable-3",
        "@+=": "variable-3",
        "@+=-": "variable-3",
        "@--": "variable-3",
        "@-=": "variable-3",
        "%+": "tag",
        "%-": "tag",
        "%": "tag",
        ">>": "tag",
        "<<": "tag",
        "<>": "tag",
        "#": "tag",
        "^": "attribute",
        "^^": "attribute",
        "^!": "attribute",
        "*": "variable-2",
        "**": "variable-2",
        "\\": "keyword",
        '"': "comment"
    }, i = {
        "/": "beh-hier",
        ">": "beh-hier",
        "-": "phys-hier",
        "|": "pipe",
        "?": "when",
        "@": "stage",
        "\\": "keyword"
    }, a = 3, o = /^([~!@#\$%\^&\*-\+=\?\/\\\|'"<>]+)([\d\w_]*)/, s = /^[! ]  /, l = /^[! ] */, c = /^\/[\/\*]/;
    e.defineMIME("text/x-tlv", {
        name: "verilog", hooks: {
            electricInput: !1, token: function (e, u) {
                var d = void 0;
                if (e.sol() && !u.tlvInBlockComment) {
                    "\\" == e.peek() && (d = "def", e.skipToEnd(), e.string.match(/\\SV/) ? u.tlvCodeActive = !1 : e.string.match(/\\TLV/) && (u.tlvCodeActive = !0)), u.tlvCodeActive && 0 == e.pos && 0 == u.indented && (_ = e.match(l, !1)) && (u.indented = _[0].length);
                    var f = u.indented, m = f / a;
                    if (m <= u.tlvIndentationStyle.length) {
                        var p = e.string.length == f, h = m * a;
                        if (h < e.string.length) {
                            var g = e.string.slice(h), b = g[0];
                            i[b] && (_ = g.match(o)) && r[_[1]] && (f += a, "\\" == b && h > 0 || (u.tlvIndentationStyle[m] = i[b], m++))
                        }
                        if (!p) for (; u.tlvIndentationStyle.length > m;) u.tlvIndentationStyle.pop()
                    }
                    u.tlvNextIndent = f
                }
                if (u.tlvCodeActive) {
                    var _, y = !1;
                    if (void 0 !== d) d += " " + t(u, 0, "scope-ident"); else if (e.pos / a < u.tlvIndentationStyle.length && (_ = e.match(e.sol() ? s : /^   /))) d = "tlv-indent-" + (e.pos % 2 == 0 ? "even" : "odd") + " " + t(u, e.pos - a, "indent"), "!" == _[0].charAt(0) && (d += " tlv-alert-line-prefix"), n(e) && (d += " " + t(u, e.pos, "before-scope-ident")); else if (u.tlvInBlockComment) e.match(/^.*?\*\//) ? u.tlvInBlockComment = !1 : e.skipToEnd(), d = "comment"; else if ((_ = e.match(c)) && !u.tlvInBlockComment) "//" == _[0] ? e.skipToEnd() : u.tlvInBlockComment = !0, d = "comment"; else if (_ = e.match(o)) {
                        var k = _[1], v = _[2];
                        r.hasOwnProperty(k) && (v.length > 0 || e.eol()) ? (d = r[k], e.column() == u.indented && (d += " " + t(u, e.column(), "scope-ident"))) : (e.backUp(e.current().length - 1), d = "tlv-default")
                    } else e.match(/^\t+/) ? d = "tlv-tab" : e.match(/^[\[\]{}\(\);\:]+/) ? d = "meta" : (_ = e.match(/^[mM]4([\+_])?[\w\d_]*/)) ? d = "+" == _[1] ? "tlv-m4-plus" : "tlv-m4" : e.match(/^ +/) ? d = e.eol() ? "error" : "tlv-default" : e.match(/^[\w\d_]+/) ? d = "number" : (e.next(), d = "tlv-default");
                    y && (d += " tlv-statement")
                } else e.match(/^[mM]4([\w\d_]*)/) && (d = "tlv-m4");
                return d
            }, indent: function (e) {
                return 1 == e.tlvCodeActive ? e.tlvNextIndent : -1
            }, startState: function (e) {
                e.tlvIndentationStyle = [], e.tlvCodeActive = !0, e.tlvNextIndent = -1, e.tlvInBlockComment = !1
            }
        }
    })
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";
    e.defineMode("xquery", function () {
        function e(e, t, n) {
            return t.tokenize = n, n(e, t)
        }

        function t(t, o) {
            var d = t.next(), m = !1, h = p(t);
            if ("<" == d) {
                if (t.match("!--", !0)) return e(t, o, s);
                if (t.match("![CDATA", !1)) return o.tokenize = l, "tag";
                if (t.match("?", !1)) return e(t, o, c);
                var y = t.eat("/");
                t.eatSpace();
                for (var k, v = ""; k = t.eat(/[^\s\u00a0=<>\"\'\/?]/);) v += k;
                return e(t, o, a(v, y))
            }
            if ("{" == d) return g(o, {type: "codeblock"}), null;
            if ("}" == d) return b(o), null;
            if (u(o)) return ">" == d ? "tag" : "/" == d && t.eat(">") ? (b(o), "tag") : "variable";
            if (/\d/.test(d)) return t.match(/^\d*(?:\.\d*)?(?:E[+\-]?\d+)?/), "atom";
            if ("(" === d && t.eat(":")) return g(o, {type: "comment"}), e(t, o, n);
            if (h || '"' !== d && "'" !== d) {
                if ("$" === d) return e(t, o, i);
                if (":" === d && t.eat("=")) return "keyword";
                if ("(" === d) return g(o, {type: "paren"}), null;
                if (")" === d) return b(o), null;
                if ("[" === d) return g(o, {type: "bracket"}), null;
                if ("]" === d) return b(o), null;
                var x = _.propertyIsEnumerable(d) && _[d];
                if (h && '"' === d) for (; '"' !== t.next();) ;
                if (h && "'" === d) for (; "'" !== t.next();) ;
                x || t.eatWhile(/[\w\$_-]/);
                var w = t.eat(":");
                !t.eat(":") && w && t.eatWhile(/[\w\$_-]/), t.match(/^[ \t]*\(/, !1) && (m = !0);
                var S = t.current();
                return x = _.propertyIsEnumerable(S) && _[S], m && !x && (x = {
                    type: "function_call",
                    style: "variable def"
                }), f(o) ? (b(o), "variable") : ("element" != S && "attribute" != S && "axis_specifier" != x.type || g(o, {type: "xmlconstructor"}), x ? x.style : "variable")
            }
            return e(t, o, r(d))
        }

        function n(e, t) {
            for (var n, r = !1, i = !1, a = 0; n = e.next();) {
                if (")" == n && r) {
                    if (!(a > 0)) {
                        b(t);
                        break
                    }
                    a--
                } else ":" == n && i && a++;
                r = ":" == n, i = "(" == n
            }
            return "comment"
        }

        function r(e, n) {
            return function (i, a) {
                var o;
                if (m(a) && i.current() == e) return b(a), n && (a.tokenize = n), "string";
                if (g(a, {
                        type: "string",
                        name: e,
                        tokenize: r(e, n)
                    }), i.match("{", !1) && d(a)) return a.tokenize = t, "string";
                for (; o = i.next();) {
                    if (o == e) {
                        b(a), n && (a.tokenize = n);
                        break
                    }
                    if (i.match("{", !1) && d(a)) return a.tokenize = t, "string"
                }
                return "string"
            }
        }

        function i(e, n) {
            var r = /[\w\$_-]/;
            if (e.eat('"')) {
                for (; '"' !== e.next();) ;
                e.eat(":")
            } else e.eatWhile(r), e.match(":=", !1) || e.eat(":");
            return e.eatWhile(r), n.tokenize = t, "variable"
        }

        function a(e, n) {
            return function (r, i) {
                return r.eatSpace(), n && r.eat(">") ? (b(i), i.tokenize = t, "tag") : (r.eat("/") || g(i, {
                    type: "tag",
                    name: e,
                    tokenize: t
                }), r.eat(">") ? (i.tokenize = t, "tag") : (i.tokenize = o, "tag"))
            }
        }

        function o(n, i) {
            var a = n.next();
            return "/" == a && n.eat(">") ? (d(i) && b(i), u(i) && b(i), "tag") : ">" == a ? (d(i) && b(i), "tag") : "=" == a ? null : '"' == a || "'" == a ? e(n, i, r(a, o)) : (d(i) || g(i, {
                type: "attribute",
                tokenize: o
            }), n.eat(/[a-zA-Z_:]/), n.eatWhile(/[-a-zA-Z0-9_:.]/), n.eatSpace(), (n.match(">", !1) || n.match("/", !1)) && (b(i), i.tokenize = t), "attribute")
        }

        function s(e, n) {
            for (var r; r = e.next();) if ("-" == r && e.match("->", !0)) return n.tokenize = t, "comment"
        }

        function l(e, n) {
            for (var r; r = e.next();) if ("]" == r && e.match("]", !0)) return n.tokenize = t, "comment"
        }

        function c(e, n) {
            for (var r; r = e.next();) if ("?" == r && e.match(">", !0)) return n.tokenize = t, "comment meta"
        }

        function u(e) {
            return h(e, "tag")
        }

        function d(e) {
            return h(e, "attribute")
        }

        function f(e) {
            return h(e, "xmlconstructor")
        }

        function m(e) {
            return h(e, "string")
        }

        function p(e) {
            return '"' === e.current() ? e.match(/^[^\"]+\"\:/, !1) : "'" === e.current() && e.match(/^[^\"]+\'\:/, !1)
        }

        function h(e, t) {
            return e.stack.length && e.stack[e.stack.length - 1].type == t
        }

        function g(e, t) {
            e.stack.push(t)
        }

        function b(e) {
            e.stack.pop();
            var n = e.stack.length && e.stack[e.stack.length - 1].tokenize;
            e.tokenize = n || t
        }

        var _ = function () {
            function e(e) {
                return {type: e, style: "keyword"}
            }

            for (var t = e("keyword a"), n = e("keyword b"), r = e("keyword c"), i = e("operator"), a = {
                type: "atom",
                style: "atom"
            }, o = {type: "axis_specifier", style: "qualifier"}, s = {
                if: t,
                switch: t,
                while: t,
                for: t,
                else: n,
                then: n,
                try: n,
                finally: n,
                catch: n,
                element: r,
                attribute: r,
                let: r,
                implements: r,
                import: r,
                module: r,
                namespace: r,
                return: r,
                super: r,
                this: r,
                throws: r,
                where: r,
                private: r,
                ",": {type: "punctuation", style: null},
                null: a,
                "fn:false()": a,
                "fn:true()": a
            }, l = ["after", "ancestor", "ancestor-or-self", "and", "as", "ascending", "assert", "attribute", "before", "by", "case", "cast", "child", "comment", "declare", "default", "define", "descendant", "descendant-or-self", "descending", "document", "document-node", "element", "else", "eq", "every", "except", "external", "following", "following-sibling", "follows", "for", "function", "if", "import", "in", "instance", "intersect", "item", "let", "module", "namespace", "node", "node", "of", "only", "or", "order", "parent", "precedes", "preceding", "preceding-sibling", "processing-instruction", "ref", "return", "returns", "satisfies", "schema", "schema-element", "self", "some", "sortby", "stable", "text", "then", "to", "treat", "typeswitch", "union", "variable", "version", "where", "xquery", "empty-sequence"], c = 0, u = l.length; c < u; c++) s[l[c]] = e(l[c]);
            for (var d = ["xs:string", "xs:float", "xs:decimal", "xs:double", "xs:integer", "xs:boolean", "xs:date", "xs:dateTime", "xs:time", "xs:duration", "xs:dayTimeDuration", "xs:time", "xs:yearMonthDuration", "numeric", "xs:hexBinary", "xs:base64Binary", "xs:anyURI", "xs:QName", "xs:byte", "xs:boolean", "xs:anyURI", "xf:yearMonthDuration"], c = 0, u = d.length; c < u; c++) s[d[c]] = a;
            for (var f = ["eq", "ne", "lt", "le", "gt", "ge", ":=", "=", ">", ">=", "<", "<=", ".", "|", "?", "and", "or", "div", "idiv", "mod", "*", "/", "+", "-"], c = 0, u = f.length; c < u; c++) s[f[c]] = i;
            for (var m = ["self::", "attribute::", "child::", "descendant::", "descendant-or-self::", "parent::", "ancestor::", "ancestor-or-self::", "following::", "preceding::", "following-sibling::", "preceding-sibling::"], c = 0, u = m.length; c < u; c++) s[m[c]] = o;
            return s
        }();
        return {
            startState: function () {
                return {tokenize: t, cc: [], stack: []}
            }, token: function (e, t) {
                return e.eatSpace() ? null : t.tokenize(e, t)
            }, blockCommentStart: "(:", blockCommentEnd: ":)"
        }
    }), e.defineMIME("application/xquery", "xquery")
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";
    e.defineMode("yaml", function () {
        var e = ["true", "false", "on", "off", "yes", "no"], t = new RegExp("\\b((" + e.join(")|(") + "))$", "i");
        return {
            token: function (e, n) {
                var r = e.peek(), i = n.escaped;
                if (n.escaped = !1, "#" == r && (0 == e.pos || /\s/.test(e.string.charAt(e.pos - 1)))) return e.skipToEnd(), "comment";
                if (e.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/)) return "string";
                if (n.literal && e.indentation() > n.keyCol) return e.skipToEnd(), "string";
                if (n.literal && (n.literal = !1), e.sol()) {
                    if (n.keyCol = 0, n.pair = !1, n.pairStart = !1, e.match(/---/)) return "def";
                    if (e.match(/\.\.\./)) return "def";
                    if (e.match(/\s*-\s+/)) return "meta"
                }
                if (e.match(/^(\{|\}|\[|\])/)) return "{" == r ? n.inlinePairs++ : "}" == r ? n.inlinePairs-- : "[" == r ? n.inlineList++ : n.inlineList-- , "meta";
                if (n.inlineList > 0 && !i && "," == r) return e.next(), "meta";
                if (n.inlinePairs > 0 && !i && "," == r) return n.keyCol = 0, n.pair = !1, n.pairStart = !1, e.next(), "meta";
                if (n.pairStart) {
                    if (e.match(/^\s*(\||\>)\s*/)) return n.literal = !0, "meta";
                    if (e.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i)) return "variable-2";
                    if (0 == n.inlinePairs && e.match(/^\s*-?[0-9\.\,]+\s?$/)) return "number";
                    if (n.inlinePairs > 0 && e.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/)) return "number";
                    if (e.match(t)) return "keyword"
                }
                return !n.pair && e.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/) ? (n.pair = !0, n.keyCol = e.indentation(), "atom") : n.pair && e.match(/^:\s*/) ? (n.pairStart = !0, "meta") : (n.pairStart = !1, n.escaped = "\\" == r, e.next(), null)
            }, startState: function () {
                return {pair: !1, pairStart: !1, keyCol: 0, inlinePairs: 0, inlineList: 0, literal: !1, escaped: !1}
            }
        }
    }), e.defineMIME("text/x-yaml", "yaml"), e.defineMIME("text/yaml", "yaml")
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";
    e.defineMode("go", function (t) {
        function n(e, t) {
            var n = e.next();
            if ('"' == n || "'" == n || "`" == n) return t.tokenize = r(n), t.tokenize(e, t);
            if (/[\d\.]/.test(n)) return "." == n ? e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/) : "0" == n ? e.match(/^[xX][0-9a-fA-F]+/) || e.match(/^0[0-7]+/) : e.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/), "number";
            if (/[\[\]{}\(\),;\:\.]/.test(n)) return l = n, null;
            if ("/" == n) {
                if (e.eat("*")) return t.tokenize = i, i(e, t);
                if (e.eat("/")) return e.skipToEnd(), "comment"
            }
            if (f.test(n)) return e.eatWhile(f), "operator";
            e.eatWhile(/[\w\$_\xa1-\uffff]/);
            var a = e.current();
            return u.propertyIsEnumerable(a) ? ("case" != a && "default" != a || (l = "case"), "keyword") : d.propertyIsEnumerable(a) ? "atom" : "variable"
        }

        function r(e) {
            return function (t, r) {
                for (var i, a = !1, o = !1; null != (i = t.next());) {
                    if (i == e && !a) {
                        o = !0;
                        break
                    }
                    a = !a && "`" != e && "\\" == i
                }
                return (o || !a && "`" != e) && (r.tokenize = n), "string"
            }
        }

        function i(e, t) {
            for (var r, i = !1; r = e.next();) {
                if ("/" == r && i) {
                    t.tokenize = n;
                    break
                }
                i = "*" == r
            }
            return "comment"
        }

        function a(e, t, n, r, i) {
            this.indented = e, this.column = t, this.type = n, this.align = r, this.prev = i
        }

        function o(e, t, n) {
            return e.context = new a(e.indented, t, n, null, e.context)
        }

        function s(e) {
            if (e.context.prev) {
                var t = e.context.type;
                return ")" != t && "]" != t && "}" != t || (e.indented = e.context.indented), e.context = e.context.prev
            }
        }

        var l, c = t.indentUnit, u = {
            break: !0,
            case: !0,
            chan: !0,
            const: !0,
            continue: !0,
            default: !0,
            defer: !0,
            else: !0,
            fallthrough: !0,
            for: !0,
            func: !0,
            go: !0,
            goto: !0,
            if: !0,
            import: !0,
            interface: !0,
            map: !0,
            package: !0,
            range: !0,
            return: !0,
            select: !0,
            struct: !0,
            switch: !0,
            type: !0,
            var: !0,
            bool: !0,
            byte: !0,
            complex64: !0,
            complex128: !0,
            float32: !0,
            float64: !0,
            int8: !0,
            int16: !0,
            int32: !0,
            int64: !0,
            string: !0,
            uint8: !0,
            uint16: !0,
            uint32: !0,
            uint64: !0,
            int: !0,
            uint: !0,
            uintptr: !0,
            error: !0,
            rune: !0
        }, d = {
            true: !0,
            false: !0,
            iota: !0,
            nil: !0,
            append: !0,
            cap: !0,
            close: !0,
            complex: !0,
            copy: !0,
            delete: !0,
            imag: !0,
            len: !0,
            make: !0,
            new: !0,
            panic: !0,
            print: !0,
            println: !0,
            real: !0,
            recover: !0
        }, f = /[+\-*&^%:=<>!|\/]/;
        return {
            startState: function (e) {
                return {tokenize: null, context: new a((e || 0) - c, 0, "top", !1), indented: 0, startOfLine: !0}
            },
            token: function (e, t) {
                var r = t.context;
                if (e.sol() && (null == r.align && (r.align = !1), t.indented = e.indentation(), t.startOfLine = !0, "case" == r.type && (r.type = "}")), e.eatSpace()) return null;
                l = null;
                var i = (t.tokenize || n)(e, t);
                return "comment" == i ? i : (null == r.align && (r.align = !0), "{" == l ? o(t, e.column(), "}") : "[" == l ? o(t, e.column(), "]") : "(" == l ? o(t, e.column(), ")") : "case" == l ? r.type = "case" : "}" == l && "}" == r.type ? s(t) : l == r.type && s(t), t.startOfLine = !1, i)
            },
            indent: function (t, r) {
                if (t.tokenize != n && null != t.tokenize) return e.Pass;
                var i = t.context, a = r && r.charAt(0);
                if ("case" == i.type && /^(?:case|default)\b/.test(r)) return t.context.type = "}", i.indented;
                var o = a == i.type;
                return i.align ? i.column + (o ? 0 : 1) : i.indented + (o ? 0 : c)
            },
            electricChars: "{}):",
            closeBrackets: "()[]{}''\"\"``",
            fold: "brace",
            blockCommentStart: "/*",
            blockCommentEnd: "*/",
            lineComment: "//"
        }
    }), e.defineMIME("text/x-go", "go")
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";
    e.defineMode("groovy", function (t) {
        function n(e) {
            for (var t = {}, n = e.split(" "), r = 0; r < n.length; ++r) t[n[r]] = !0;
            return t
        }

        function r(e, t) {
            var n = e.next();
            if ('"' == n || "'" == n) return i(n, e, t);
            if (/[\[\]{}\(\),;\:\.]/.test(n)) return d = n, null;
            if (/\d/.test(n)) return e.eatWhile(/[\w\.]/), e.eat(/eE/) && (e.eat(/\+\-/), e.eatWhile(/\d/)), "number";
            if ("/" == n) {
                if (e.eat("*")) return t.tokenize.push(o), o(e, t);
                if (e.eat("/")) return e.skipToEnd(), "comment";
                if (s(t.lastToken, !1)) return i(n, e, t)
            }
            if ("-" == n && e.eat(">")) return d = "->", null;
            if (/[+\-*&%=<>!?|\/~]/.test(n)) return e.eatWhile(/[+\-*&%=<>|~]/), "operator";
            if (e.eatWhile(/[\w\$_]/), "@" == n) return e.eatWhile(/[\w\$_\.]/), "meta";
            if ("." == t.lastToken) return "property";
            if (e.eat(":")) return d = "proplabel", "property";
            var r = e.current();
            return h.propertyIsEnumerable(r) ? "atom" : f.propertyIsEnumerable(r) ? (m.propertyIsEnumerable(r) ? d = "newstatement" : p.propertyIsEnumerable(r) && (d = "standalone"), "keyword") : "variable"
        }

        function i(e, t, n) {
            function r(t, n) {
                for (var r, o = !1, s = !i; null != (r = t.next());) {
                    if (r == e && !o) {
                        if (!i) break;
                        if (t.match(e + e)) {
                            s = !0;
                            break
                        }
                    }
                    if ('"' == e && "$" == r && !o && t.eat("{")) return n.tokenize.push(a()), "string";
                    o = !o && "\\" == r
                }
                return s && n.tokenize.pop(), "string"
            }

            var i = !1;
            if ("/" != e && t.eat(e)) {
                if (!t.eat(e)) return "string";
                i = !0
            }
            return n.tokenize.push(r), r(t, n)
        }

        function a() {
            function e(e, n) {
                if ("}" == e.peek()) {
                    if (0 == --t) return n.tokenize.pop(), n.tokenize[n.tokenize.length - 1](e, n)
                } else "{" == e.peek() && t++;
                return r(e, n)
            }

            var t = 1;
            return e.isBase = !0, e
        }

        function o(e, t) {
            for (var n, r = !1; n = e.next();) {
                if ("/" == n && r) {
                    t.tokenize.pop();
                    break
                }
                r = "*" == n
            }
            return "comment"
        }

        function s(e, t) {
            return !e || "operator" == e || "->" == e || /[\.\[\{\(,;:]/.test(e) || "newstatement" == e || "keyword" == e || "proplabel" == e || "standalone" == e && !t
        }

        function l(e, t, n, r, i) {
            this.indented = e, this.column = t, this.type = n, this.align = r, this.prev = i
        }

        function c(e, t, n) {
            return e.context = new l(e.indented, t, n, null, e.context)
        }

        function u(e) {
            var t = e.context.type;
            return ")" != t && "]" != t && "}" != t || (e.indented = e.context.indented), e.context = e.context.prev
        }

        var d,
            f = n("abstract as assert boolean break byte case catch char class const continue def default do double else enum extends final finally float for goto if implements import in instanceof int interface long native new package private protected public return short static strictfp super switch synchronized threadsafe throw throws trait transient try void volatile while"),
            m = n("catch class def do else enum finally for if interface switch trait try while"),
            p = n("return break continue"), h = n("null true false this");
        return r.isBase = !0, {
            startState: function (e) {
                return {
                    tokenize: [r],
                    context: new l((e || 0) - t.indentUnit, 0, "top", !1),
                    indented: 0,
                    startOfLine: !0,
                    lastToken: null
                }
            }, token: function (e, t) {
                var n = t.context;
                if (e.sol() && (null == n.align && (n.align = !1), t.indented = e.indentation(), t.startOfLine = !0, "statement" != n.type || s(t.lastToken, !0) || (u(t), n = t.context)), e.eatSpace()) return null;
                d = null;
                var r = t.tokenize[t.tokenize.length - 1](e, t);
                if ("comment" == r) return r;
                if (null == n.align && (n.align = !0), ";" != d && ":" != d || "statement" != n.type) if ("->" == d && "statement" == n.type && "}" == n.prev.type) u(t), t.context.align = !1; else if ("{" == d) c(t, e.column(), "}"); else if ("[" == d) c(t, e.column(), "]"); else if ("(" == d) c(t, e.column(), ")"); else if ("}" == d) {
                    for (; "statement" == n.type;) n = u(t);
                    for ("}" == n.type && (n = u(t)); "statement" == n.type;) n = u(t)
                } else d == n.type ? u(t) : ("}" == n.type || "top" == n.type || "statement" == n.type && "newstatement" == d) && c(t, e.column(), "statement"); else u(t);
                return t.startOfLine = !1, t.lastToken = d || r, r
            }, indent: function (n, r) {
                if (!n.tokenize[n.tokenize.length - 1].isBase) return e.Pass;
                var i = r && r.charAt(0), a = n.context;
                "statement" != a.type || s(n.lastToken, !0) || (a = a.prev);
                var o = i == a.type;
                return "statement" == a.type ? a.indented + ("{" == i ? 0 : t.indentUnit) : a.align ? a.column + (o ? 0 : 1) : a.indented + (o ? 0 : t.indentUnit)
            }, electricChars: "{}", closeBrackets: {triples: "'\""}, fold: "brace"
        }
    }), e.defineMIME("text/x-groovy", "groovy")
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";
    e.defineMode("nginx", function (e) {
        function t(e) {
            for (var t = {}, n = e.split(" "), r = 0; r < n.length; ++r) t[n[r]] = !0;
            return t
        }

        function n(e, t) {
            return s = t, e
        }

        function r(e, t) {
            e.eatWhile(/[\w\$_]/);
            var r = e.current();
            if (l.propertyIsEnumerable(r)) return "keyword";
            if (c.propertyIsEnumerable(r)) return "variable-2";
            if (u.propertyIsEnumerable(r)) return "string-2";
            var s = e.next();
            return "@" == s ? (e.eatWhile(/[\w\\\-]/), n("meta", e.current())) : "/" == s && e.eat("*") ? (t.tokenize = i, i(e, t)) : "<" == s && e.eat("!") ? (t.tokenize = a, a(e, t)) : "=" != s ? "~" != s && "|" != s || !e.eat("=") ? '"' == s || "'" == s ? (t.tokenize = o(s), t.tokenize(e, t)) : "#" == s ? (e.skipToEnd(), n("comment", "comment")) : "!" == s ? (e.match(/^\s*\w*/), n("keyword", "important")) : /\d/.test(s) ? (e.eatWhile(/[\w.%]/), n("number", "unit")) : /[,.+>*\/]/.test(s) ? n(null, "select-op") : /[;{}:\[\]]/.test(s) ? n(null, s) : (e.eatWhile(/[\w\\\-]/), n("variable", "variable")) : n(null, "compare") : void n(null, "compare")
        }

        function i(e, t) {
            for (var i, a = !1; null != (i = e.next());) {
                if (a && "/" == i) {
                    t.tokenize = r;
                    break
                }
                a = "*" == i
            }
            return n("comment", "comment")
        }

        function a(e, t) {
            for (var i, a = 0; null != (i = e.next());) {
                if (a >= 2 && ">" == i) {
                    t.tokenize = r;
                    break
                }
                a = "-" == i ? a + 1 : 0
            }
            return n("comment", "comment")
        }

        function o(e) {
            return function (t, i) {
                for (var a, o = !1; null != (a = t.next()) && (a != e || o);) o = !o && "\\" == a;
                return o || (i.tokenize = r), n("string", "string")
            }
        }

        var s,
            l = t("break return rewrite set accept_mutex accept_mutex_delay access_log add_after_body add_before_body add_header addition_types aio alias allow ancient_browser ancient_browser_value auth_basic auth_basic_user_file auth_http auth_http_header auth_http_timeout autoindex autoindex_exact_size autoindex_localtime charset charset_types client_body_buffer_size client_body_in_file_only client_body_in_single_buffer client_body_temp_path client_body_timeout client_header_buffer_size client_header_timeout client_max_body_size connection_pool_size create_full_put_path daemon dav_access dav_methods debug_connection debug_points default_type degradation degrade deny devpoll_changes devpoll_events directio directio_alignment empty_gif env epoll_events error_log eventport_events expires fastcgi_bind fastcgi_buffer_size fastcgi_buffers fastcgi_busy_buffers_size fastcgi_cache fastcgi_cache_key fastcgi_cache_methods fastcgi_cache_min_uses fastcgi_cache_path fastcgi_cache_use_stale fastcgi_cache_valid fastcgi_catch_stderr fastcgi_connect_timeout fastcgi_hide_header fastcgi_ignore_client_abort fastcgi_ignore_headers fastcgi_index fastcgi_intercept_errors fastcgi_max_temp_file_size fastcgi_next_upstream fastcgi_param fastcgi_pass_header fastcgi_pass_request_body fastcgi_pass_request_headers fastcgi_read_timeout fastcgi_send_lowat fastcgi_send_timeout fastcgi_split_path_info fastcgi_store fastcgi_store_access fastcgi_temp_file_write_size fastcgi_temp_path fastcgi_upstream_fail_timeout fastcgi_upstream_max_fails flv geoip_city geoip_country google_perftools_profiles gzip gzip_buffers gzip_comp_level gzip_disable gzip_hash gzip_http_version gzip_min_length gzip_no_buffer gzip_proxied gzip_static gzip_types gzip_vary gzip_window if_modified_since ignore_invalid_headers image_filter image_filter_buffer image_filter_jpeg_quality image_filter_transparency imap_auth imap_capabilities imap_client_buffer index ip_hash keepalive_requests keepalive_timeout kqueue_changes kqueue_events large_client_header_buffers limit_conn limit_conn_log_level limit_rate limit_rate_after limit_req limit_req_log_level limit_req_zone limit_zone lingering_time lingering_timeout lock_file log_format log_not_found log_subrequest map_hash_bucket_size map_hash_max_size master_process memcached_bind memcached_buffer_size memcached_connect_timeout memcached_next_upstream memcached_read_timeout memcached_send_timeout memcached_upstream_fail_timeout memcached_upstream_max_fails merge_slashes min_delete_depth modern_browser modern_browser_value msie_padding msie_refresh multi_accept open_file_cache open_file_cache_errors open_file_cache_events open_file_cache_min_uses open_file_cache_valid open_log_file_cache output_buffers override_charset perl perl_modules perl_require perl_set pid pop3_auth pop3_capabilities port_in_redirect postpone_gzipping postpone_output protocol proxy proxy_bind proxy_buffer proxy_buffer_size proxy_buffering proxy_buffers proxy_busy_buffers_size proxy_cache proxy_cache_key proxy_cache_methods proxy_cache_min_uses proxy_cache_path proxy_cache_use_stale proxy_cache_valid proxy_connect_timeout proxy_headers_hash_bucket_size proxy_headers_hash_max_size proxy_hide_header proxy_ignore_client_abort proxy_ignore_headers proxy_intercept_errors proxy_max_temp_file_size proxy_method proxy_next_upstream proxy_pass_error_message proxy_pass_header proxy_pass_request_body proxy_pass_request_headers proxy_read_timeout proxy_redirect proxy_send_lowat proxy_send_timeout proxy_set_body proxy_set_header proxy_ssl_session_reuse proxy_store proxy_store_access proxy_temp_file_write_size proxy_temp_path proxy_timeout proxy_upstream_fail_timeout proxy_upstream_max_fails random_index read_ahead real_ip_header recursive_error_pages request_pool_size reset_timedout_connection resolver resolver_timeout rewrite_log rtsig_overflow_events rtsig_overflow_test rtsig_overflow_threshold rtsig_signo satisfy secure_link_secret send_lowat send_timeout sendfile sendfile_max_chunk server_name_in_redirect server_names_hash_bucket_size server_names_hash_max_size server_tokens set_real_ip_from smtp_auth smtp_capabilities smtp_client_buffer smtp_greeting_delay so_keepalive source_charset ssi ssi_ignore_recycled_buffers ssi_min_file_chunk ssi_silent_errors ssi_types ssi_value_length ssl ssl_certificate ssl_certificate_key ssl_ciphers ssl_client_certificate ssl_crl ssl_dhparam ssl_engine ssl_prefer_server_ciphers ssl_protocols ssl_session_cache ssl_session_timeout ssl_verify_client ssl_verify_depth starttls stub_status sub_filter sub_filter_once sub_filter_types tcp_nodelay tcp_nopush thread_stack_size timeout timer_resolution types_hash_bucket_size types_hash_max_size underscores_in_headers uninitialized_variable_warn use user userid userid_domain userid_expires userid_mark userid_name userid_p3p userid_path userid_service valid_referers variables_hash_bucket_size variables_hash_max_size worker_connections worker_cpu_affinity worker_priority worker_processes worker_rlimit_core worker_rlimit_nofile worker_rlimit_sigpending worker_threads working_directory xclient xml_entities xslt_stylesheet xslt_typesdrew@li229-23"),
            c = t("http mail events server types location upstream charset_map limit_except if geo map"),
            u = t("include root server server_name listen internal proxy_pass memcached_pass fastcgi_pass try_files"),
            d = e.indentUnit;
        return {
            startState: function (e) {
                return {tokenize: r, baseIndent: e || 0, stack: []}
            }, token: function (e, t) {
                if (e.eatSpace()) return null;
                s = null;
                var n = t.tokenize(e, t), r = t.stack[t.stack.length - 1];
                return "hash" == s && "rule" == r ? n = "atom" : "variable" == n && ("rule" == r ? n = "number" : r && "@media{" != r || (n = "tag")), "rule" == r && /^[\{\};]$/.test(s) && t.stack.pop(), "{" == s ? "@media" == r ? t.stack[t.stack.length - 1] = "@media{" : t.stack.push("{") : "}" == s ? t.stack.pop() : "@media" == s ? t.stack.push("@media") : "{" == r && "comment" != s && t.stack.push("rule"), n
            }, indent: function (e, t) {
                var n = e.stack.length;
                return /^\}/.test(t) && (n -= "rule" == e.stack[e.stack.length - 1] ? 2 : 1), e.baseIndent + n * d
            }, electricChars: "}"
        }
    }), e.defineMIME("text/x-nginx-conf", "nginx")
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";
    e.defineMode("octave", function () {
        function e(e) {
            return new RegExp("^((" + e.join(")|(") + "))\\b")
        }

        function t(e, t) {
            return e.sol() || "'" !== e.peek() ? (t.tokenize = r, r(e, t)) : (e.next(), t.tokenize = r, "operator")
        }

        function n(e, t) {
            return e.match(/^.*%}/) ? (t.tokenize = r, "comment") : (e.skipToEnd(), "comment")
        }

        function r(m, p) {
            if (m.eatSpace()) return null;
            if (m.match("%{")) return p.tokenize = n, m.skipToEnd(), "comment";
            if (m.match(/^[%#]/)) return m.skipToEnd(), "comment";
            if (m.match(/^[0-9\.+-]/, !1)) {
                if (m.match(/^[+-]?0x[0-9a-fA-F]+[ij]?/)) return m.tokenize = r, "number";
                if (m.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?[ij]?/)) return "number";
                if (m.match(/^[+-]?\d+([EeDd][+-]?\d+)?[ij]?/)) return "number"
            }
            if (m.match(e(["nan", "NaN", "inf", "Inf"]))) return "number";
            var h = m.match(/^"(?:[^"]|"")*("|$)/) || m.match(/^'(?:[^']|'')*('|$)/);
            return h ? h[1] ? "string" : "string error" : m.match(f) ? "keyword" : m.match(d) ? "builtin" : m.match(u) ? "variable" : m.match(i) || m.match(o) ? "operator" : m.match(a) || m.match(s) || m.match(l) ? null : m.match(c) ? (p.tokenize = t, null) : (m.next(), "error")
        }

        var i = new RegExp("^[\\+\\-\\*/&|\\^~<>!@'\\\\]"), a = new RegExp("^[\\(\\[\\{\\},:=;]"),
            o = new RegExp("^((==)|(~=)|(<=)|(>=)|(<<)|(>>)|(\\.[\\+\\-\\*/\\^\\\\]))"),
            s = new RegExp("^((!=)|(\\+=)|(\\-=)|(\\*=)|(/=)|(&=)|(\\|=)|(\\^=))"), l = new RegExp("^((>>=)|(<<=))"),
            c = new RegExp("^[\\]\\)]"), u = new RegExp("^[_A-Za-z¡-￿][_A-Za-z0-9¡-￿]*"),
            d = e(["error", "eval", "function", "abs", "acos", "atan", "asin", "cos", "cosh", "exp", "log", "prod", "sum", "log10", "max", "min", "sign", "sin", "sinh", "sqrt", "tan", "reshape", "break", "zeros", "default", "margin", "round", "ones", "rand", "syn", "ceil", "floor", "size", "clear", "zeros", "eye", "mean", "std", "cov", "det", "eig", "inv", "norm", "rank", "trace", "expm", "logm", "sqrtm", "linspace", "plot", "title", "xlabel", "ylabel", "legend", "text", "grid", "meshgrid", "mesh", "num2str", "fft", "ifft", "arrayfun", "cellfun", "input", "fliplr", "flipud", "ismember"]),
            f = e(["return", "case", "switch", "else", "elseif", "end", "endif", "endfunction", "if", "otherwise", "do", "for", "while", "try", "catch", "classdef", "properties", "events", "methods", "global", "persistent", "endfor", "endwhile", "printf", "sprintf", "disp", "until", "continue", "pkg"]);
        return {
            startState: function () {
                return {tokenize: r}
            }, token: function (e, n) {
                var r = n.tokenize(e, n);
                return "number" !== r && "variable" !== r || (n.tokenize = t), r
            }, lineComment: "%", fold: "indent"
        }
    }), e.defineMIME("text/x-octave", "octave")
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";

    function t(e, t, n, r, i, a) {
        this.indented = e, this.column = t, this.type = n, this.info = r, this.align = i, this.prev = a
    }

    function n(e, n, r, i) {
        var a = e.indented;
        return e.context && "statement" == e.context.type && "statement" != r && (a = e.context.indented), e.context = new t(a, n, r, i, null, e.context)
    }

    function r(e) {
        var t = e.context.type;
        return ")" != t && "]" != t && "}" != t || (e.indented = e.context.indented), e.context = e.context.prev
    }

    function i(e, t, n) {
        return "variable" == t.prevToken || "variable-3" == t.prevToken || (!!/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(e.string.slice(0, n)) || (!(!t.typeAtEndOfLine || e.column() != e.indentation()) || void 0))
    }

    function a(e) {
        for (; ;) {
            if (!e || "top" == e.type) return !0;
            if ("}" == e.type && "namespace" != e.prev.info) return !1;
            e = e.prev
        }
    }

    function o(e) {
        for (var t = {}, n = e.split(" "), r = 0; r < n.length; ++r) t[n[r]] = !0;
        return t
    }

    function s(e, t) {
        return "function" == typeof e ? e(t) : e.propertyIsEnumerable(t)
    }

    function l(e, t) {
        if (!t.startOfLine) return !1;
        for (var n, r = null; n = e.peek();) {
            if ("\\" == n && e.match(/^.$/)) {
                r = l;
                break
            }
            if ("/" == n && e.match(/^\/[\/\*]/, !1)) break;
            e.next()
        }
        return t.tokenize = r, "meta"
    }

    function c(e, t) {
        return "variable-3" == t.prevToken && "variable-3"
    }

    function u(e) {
        return e.eatWhile(/[\w\.']/), "number"
    }

    function d(e, t) {
        if (e.backUp(1), e.match(/(R|u8R|uR|UR|LR)/)) {
            var n = e.match(/"([^\s\\()]{0,16})\(/);
            return !!n && (t.cpp11RawStringDelim = n[1], t.tokenize = p, p(e, t))
        }
        return e.match(/(u8|u|U|L)/) ? !!e.match(/["']/, !1) && "string" : (e.next(), !1)
    }

    function f(e) {
        var t = /(\w+)::~?(\w+)$/.exec(e);
        return t && t[1] == t[2]
    }

    function m(e, t) {
        for (var n; null != (n = e.next());) if ('"' == n && !e.eat('"')) {
            t.tokenize = null;
            break
        }
        return "string"
    }

    function p(e, t) {
        var n = t.cpp11RawStringDelim.replace(/[^\w\s]/g, "\\$&");
        return e.match(new RegExp(".*?\\)" + n + '"')) ? t.tokenize = null : e.skipToEnd(), "string"
    }

    function h(t, n) {
        function r(e) {
            if (e) for (var t in e) e.hasOwnProperty(t) && i.push(t)
        }

        "string" == typeof t && (t = [t]);
        var i = [];
        r(n.keywords), r(n.types), r(n.builtin), r(n.atoms), i.length && (n.helperType = t[0], e.registerHelper("hintWords", t[0], i));
        for (var a = 0; a < t.length; ++a) e.defineMIME(t[a], n)
    }

    function g(e, t) {
        for (var n = !1; !e.eol();) {
            if (!n && e.match('"""')) {
                t.tokenize = null;
                break
            }
            n = "\\" == e.next() && !n
        }
        return "string"
    }

    function b(e) {
        return function (t, n) {
            for (var r, i = !1, a = !1; !t.eol();) {
                if (!e && !i && t.match('"')) {
                    a = !0;
                    break
                }
                if (e && t.match('"""')) {
                    a = !0;
                    break
                }
                r = t.next(), !i && "$" == r && t.match("{") && t.skipTo("}"), i = !i && "\\" == r && !e
            }
            return !a && e || (n.tokenize = null), "string"
        }
    }

    function _(e) {
        return function (t, n) {
            for (var r, i = !1, a = !1; !t.eol();) {
                if (!i && t.match('"') && ("single" == e || t.match('""'))) {
                    a = !0;
                    break
                }
                if (!i && t.match("``")) {
                    v = _(e), a = !0;
                    break
                }
                r = t.next(), i = "single" == e && !i && "\\" == r
            }
            return a && (n.tokenize = null), "string"
        }
    }

    e.defineMode("clike", function (o, l) {
        function c(e, t) {
            var n = e.next();
            if (S[n]) {
                var r = S[n](e, t);
                if (!1 !== r) return r
            }
            if ('"' == n || "'" == n) return t.tokenize = u(n), t.tokenize(e, t);
            if (T.test(n)) return m = n, null;
            if (q.test(n)) {
                if (e.backUp(1), e.match(I)) return "number";
                e.next()
            }
            if ("/" == n) {
                if (e.eat("*")) return t.tokenize = d, d(e, t);
                if (e.eat("/")) return e.skipToEnd(), "comment"
            }
            if (A.test(n)) {
                for (; !e.match(/^\/[\/*]/, !1) && e.eat(A);) ;
                return "operator"
            }
            if (e.eatWhile(j), C) for (; e.match(C);) e.eatWhile(j);
            var i = e.current();
            return s(_, i) ? (s(v, i) && (m = "newstatement"), s(x, i) && (p = !0), "keyword") : s(y, i) ? "variable-3" : s(k, i) ? (s(v, i) && (m = "newstatement"), "builtin") : s(w, i) ? "atom" : "variable"
        }

        function u(e) {
            return function (t, n) {
                for (var r, i = !1, a = !1; null != (r = t.next());) {
                    if (r == e && !i) {
                        a = !0;
                        break
                    }
                    i = !i && "\\" == r
                }
                return (a || !i && !E) && (n.tokenize = null), "string"
            }
        }

        function d(e, t) {
            for (var n, r = !1; n = e.next();) {
                if ("/" == n && r) {
                    t.tokenize = null;
                    break
                }
                r = "*" == n
            }
            return "comment"
        }

        function f(e, t) {
            l.typeFirstDefinitions && e.eol() && a(t.context) && (t.typeAtEndOfLine = i(e, t, e.pos))
        }

        var m, p, h = o.indentUnit, g = l.statementIndentUnit || h, b = l.dontAlignCalls, _ = l.keywords || {},
            y = l.types || {}, k = l.builtin || {}, v = l.blockKeywords || {}, x = l.defKeywords || {},
            w = l.atoms || {}, S = l.hooks || {}, E = l.multiLineStrings, z = !1 !== l.indentStatements,
            M = !1 !== l.indentSwitch, C = l.namespaceSeparator, T = l.isPunctuationChar || /[\[\]{}\(\),;\:\.]/,
            q = l.numberStart || /[\d\.]/,
            I = l.number || /^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,
            A = l.isOperatorChar || /[+\-*&%=<>!?|\/]/, j = l.isIdentifierChar || /[\w\$_\xa1-\uffff]/;
        return {
            startState: function (e) {
                return {
                    tokenize: null,
                    context: new t((e || 0) - h, 0, "top", null, !1),
                    indented: 0,
                    startOfLine: !0,
                    prevToken: null
                }
            },
            token: function (e, t) {
                var o = t.context;
                if (e.sol() && (null == o.align && (o.align = !1), t.indented = e.indentation(), t.startOfLine = !0), e.eatSpace()) return f(e, t), null;
                m = p = null;
                var s = (t.tokenize || c)(e, t);
                if ("comment" == s || "meta" == s) return s;
                if (null == o.align && (o.align = !0), ";" == m || ":" == m || "," == m && e.match(/^\s*(?:\/\/.*)?$/, !1)) for (; "statement" == t.context.type;) r(t); else if ("{" == m) n(t, e.column(), "}"); else if ("[" == m) n(t, e.column(), "]"); else if ("(" == m) n(t, e.column(), ")"); else if ("}" == m) {
                    for (; "statement" == o.type;) o = r(t);
                    for ("}" == o.type && (o = r(t)); "statement" == o.type;) o = r(t)
                } else m == o.type ? r(t) : z && (("}" == o.type || "top" == o.type) && ";" != m || "statement" == o.type && "newstatement" == m) && n(t, e.column(), "statement", e.current());
                if ("variable" == s && ("def" == t.prevToken || l.typeFirstDefinitions && i(e, t, e.start) && a(t.context) && e.match(/^\s*\(/, !1)) && (s = "def"), S.token) {
                    var u = S.token(e, t, s);
                    void 0 !== u && (s = u)
                }
                return "def" == s && !1 === l.styleDefs && (s = "variable"), t.startOfLine = !1, t.prevToken = p ? "def" : s || m, f(e, t), s
            },
            indent: function (t, n) {
                if (t.tokenize != c && null != t.tokenize || t.typeAtEndOfLine) return e.Pass;
                var r = t.context, i = n && n.charAt(0);
                if ("statement" == r.type && "}" == i && (r = r.prev), l.dontIndentStatements) for (; "statement" == r.type && l.dontIndentStatements.test(r.info);) r = r.prev;
                if (S.indent) {
                    var a = S.indent(t, r, n);
                    if ("number" == typeof a) return a
                }
                var o = i == r.type, s = r.prev && "switch" == r.prev.info;
                if (l.allmanIndentation && /[{(]/.test(i)) {
                    for (; "top" != r.type && "}" != r.type;) r = r.prev;
                    return r.indented
                }
                return "statement" == r.type ? r.indented + ("{" == i ? 0 : g) : !r.align || b && ")" == r.type ? ")" != r.type || o ? r.indented + (o ? 0 : h) + (o || !s || /^(?:case|default)\b/.test(n) ? 0 : h) : r.indented + g : r.column + (o ? 0 : 1)
            },
            electricInput: M ? /^\s*(?:case .*?:|default:|\{\}?|\})$/ : /^\s*[{}]$/,
            blockCommentStart: "/*",
            blockCommentEnd: "*/",
            lineComment: "//",
            fold: "brace"
        }
    });
    var y = "auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile",
        k = "int long char short double float unsigned signed void size_t ptrdiff_t";
    h(["text/x-csrc", "text/x-c", "text/x-chdr"], {
        name: "clike",
        keywords: o(y),
        types: o(k + " bool _Complex _Bool float_t double_t intptr_t intmax_t int8_t int16_t int32_t int64_t uintptr_t uintmax_t uint8_t uint16_t uint32_t uint64_t"),
        blockKeywords: o("case do else for if switch while struct"),
        defKeywords: o("struct"),
        typeFirstDefinitions: !0,
        atoms: o("null true false"),
        hooks: {"#": l, "*": c},
        modeProps: {fold: ["brace", "include"]}
    }), h(["text/x-c++src", "text/x-c++hdr"], {
        name: "clike",
        keywords: o(y + " asm dynamic_cast namespace reinterpret_cast try explicit new static_cast typeid catch operator template typename class friend private this using const_cast inline public throw virtual delete mutable protected alignas alignof constexpr decltype nullptr noexcept thread_local final static_assert override"),
        types: o(k + " bool wchar_t"),
        blockKeywords: o("catch class do else finally for if struct switch try while"),
        defKeywords: o("class namespace struct enum union"),
        typeFirstDefinitions: !0,
        atoms: o("true false null"),
        dontIndentStatements: /^template$/,
        isIdentifierChar: /[\w\$_~\xa1-\uffff]/,
        hooks: {
            "#": l,
            "*": c,
            u: d,
            U: d,
            L: d,
            R: d,
            0: u,
            1: u,
            2: u,
            3: u,
            4: u,
            5: u,
            6: u,
            7: u,
            8: u,
            9: u,
            token: function (e, t, n) {
                if ("variable" == n && "(" == e.peek() && (";" == t.prevToken || null == t.prevToken || "}" == t.prevToken) && f(e.current())) return "def"
            }
        },
        namespaceSeparator: "::",
        modeProps: {fold: ["brace", "include"]}
    }), h("text/x-java", {
        name: "clike",
        keywords: o("abstract assert break case catch class const continue default do else enum extends final finally float for goto if implements import instanceof interface native new package private protected public return static strictfp super switch synchronized this throw throws transient try volatile while @interface"),
        types: o("byte short int long float double boolean char void Boolean Byte Character Double Float Integer Long Number Object Short String StringBuffer StringBuilder Void"),
        blockKeywords: o("catch class do else finally for if switch try while"),
        defKeywords: o("class interface package enum @interface"),
        typeFirstDefinitions: !0,
        atoms: o("true false null"),
        number: /^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+\.?\d*|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,
        hooks: {
            "@": function (e) {
                return !e.match("interface", !1) && (e.eatWhile(/[\w\$_]/), "meta")
            }
        },
        modeProps: {fold: ["brace", "import"]}
    }), h("text/x-csharp", {
        name: "clike",
        keywords: o("abstract as async await base break case catch checked class const continue default delegate do else enum event explicit extern finally fixed for foreach goto if implicit in interface internal is lock namespace new operator out override params private protected public readonly ref return sealed sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using virtual void volatile while add alias ascending descending dynamic from get global group into join let orderby partial remove select set value var yield"),
        types: o("Action Boolean Byte Char DateTime DateTimeOffset Decimal Double Func Guid Int16 Int32 Int64 Object SByte Single String Task TimeSpan UInt16 UInt32 UInt64 bool byte char decimal double short int long object sbyte float string ushort uint ulong"),
        blockKeywords: o("catch class do else finally for foreach if struct switch try while"),
        defKeywords: o("class interface namespace struct var"),
        typeFirstDefinitions: !0,
        atoms: o("true false null"),
        hooks: {
            "@": function (e, t) {
                return e.eat('"') ? (t.tokenize = m, m(e, t)) : (e.eatWhile(/[\w\$_]/), "meta")
            }
        }
    }), h("text/x-scala", {
        name: "clike",
        keywords: o("abstract case catch class def do else extends final finally for forSome if implicit import lazy match new null object override package private protected return sealed super this throw trait try type val var while with yield _ assert assume require print println printf readLine readBoolean readByte readShort readChar readInt readLong readFloat readDouble"),
        types: o("AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either Enumeration Equiv Error Exception Fractional Function IndexedSeq Int Integral Iterable Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"),
        multiLineStrings: !0,
        blockKeywords: o("catch class do else finally for forSome if match switch try while"),
        defKeywords: o("class def object package trait type val var"),
        atoms: o("true false null"),
        indentStatements: !1,
        indentSwitch: !1,
        isOperatorChar: /[+\-*&%=<>!?|\/#:@]/,
        hooks: {
            "@": function (e) {
                return e.eatWhile(/[\w\$_]/), "meta"
            }, '"': function (e, t) {
                return !!e.match('""') && (t.tokenize = g, t.tokenize(e, t))
            }, "'": function (e) {
                return e.eatWhile(/[\w\$_\xa1-\uffff]/), "atom"
            }, "=": function (e, n) {
                var r = n.context;
                return !("}" != r.type || !r.align || !e.eat(">")) && (n.context = new t(r.indented, r.column, r.type, r.info, null, r.prev), "operator")
            }
        },
        modeProps: {closeBrackets: {triples: '"'}}
    }), h("text/x-kotlin", {
        name: "clike",
        keywords: o("package as typealias class interface this super val var fun for is in This throw return break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend"),
        types: o("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"),
        intendSwitch: !1,
        indentStatements: !1,
        multiLineStrings: !0,
        number: /^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+\.?\d*|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,
        blockKeywords: o("catch class do else finally for if where try while enum"),
        defKeywords: o("class val var object package interface fun"),
        atoms: o("true false null this"),
        hooks: {
            '"': function (e, t) {
                return t.tokenize = b(e.match('""')), t.tokenize(e, t)
            }
        },
        modeProps: {closeBrackets: {triples: '"'}}
    }), h(["x-shader/x-vertex", "x-shader/x-fragment"], {
        name: "clike",
        keywords: o("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),
        types: o("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),
        blockKeywords: o("for while do if else struct"),
        builtin: o("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),
        atoms: o("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TexureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),
        indentSwitch: !1,
        hooks: {"#": l},
        modeProps: {fold: ["brace", "include"]}
    }), h("text/x-nesc", {
        name: "clike",
        keywords: o(y + "as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),
        types: o(k),
        blockKeywords: o("case do else for if switch while struct"),
        atoms: o("null true false"),
        hooks: {"#": l},
        modeProps: {fold: ["brace", "include"]}
    }), h("text/x-objectivec", {
        name: "clike",
        keywords: o(y + "inline restrict _Bool _Complex _Imaginary BOOL Class bycopy byref id IMP in inout nil oneway out Protocol SEL self super atomic nonatomic retain copy readwrite readonly"),
        types: o(k),
        atoms: o("YES NO NULL NILL ON OFF true false"),
        hooks: {
            "@": function (e) {
                return e.eatWhile(/[\w\$]/), "keyword"
            }, "#": l, indent: function (e, t, n) {
                if ("statement" == t.type && /^@\w/.test(n)) return t.indented
            }
        },
        modeProps: {fold: "brace"}
    }), h("text/x-squirrel", {
        name: "clike",
        keywords: o("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),
        types: o(k),
        blockKeywords: o("case catch class else for foreach if switch try while"),
        defKeywords: o("function local class"),
        typeFirstDefinitions: !0,
        atoms: o("true false null"),
        hooks: {"#": l},
        modeProps: {fold: ["brace", "include"]}
    });
    var v = null;
    h("text/x-ceylon", {
        name: "clike",
        keywords: o("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),
        types: function (e) {
            var t = e.charAt(0);
            return t === t.toUpperCase() && t !== t.toLowerCase()
        },
        blockKeywords: o("case catch class dynamic else finally for function if interface module new object switch try while"),
        defKeywords: o("class dynamic function interface module object package value"),
        builtin: o("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),
        isPunctuationChar: /[\[\]{}\(\),;\:\.`]/,
        isOperatorChar: /[+\-*&%=<>!?|^~:\/]/,
        numberStart: /[\d#$]/,
        number: /^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,
        multiLineStrings: !0,
        typeFirstDefinitions: !0,
        atoms: o("true false null larger smaller equal empty finished"),
        indentSwitch: !1,
        styleDefs: !1,
        hooks: {
            "@": function (e) {
                return e.eatWhile(/[\w\$_]/), "meta"
            }, '"': function (e, t) {
                return t.tokenize = _(e.match('""') ? "triple" : "single"), t.tokenize(e, t)
            }, "`": function (e, t) {
                return !(!v || !e.match("`")) && (t.tokenize = v, v = null, t.tokenize(e, t))
            }, "'": function (e) {
                return e.eatWhile(/[\w\$_\xa1-\uffff]/), "atom"
            }, token: function (e, t, n) {
                if (("variable" == n || "variable-3" == n) && "." == t.prevToken) return "variable-2"
            }
        },
        modeProps: {fold: ["brace", "import"], closeBrackets: {triples: '"'}}
    })
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";

    function t(e) {
        for (var t = {}, n = 0; n < e.length; n++) t[e[n]] = !0;
        return t
    }

    function n(e, t, n) {
        if (e.sol() && (t.indented = e.indentation()), e.eatSpace()) return null;
        var r = e.peek();
        if ("/" == r) {
            if (e.match("//")) return e.skipToEnd(), "comment";
            if (e.match("/*")) return t.tokenize.push(a), a(e, t)
        }
        if (e.match(v)) return "builtin";
        if (e.match(x)) return "attribute";
        if (e.match(h)) return "number";
        if (e.match(g)) return "number";
        if (e.match(b)) return "number";
        if (e.match(_)) return "number";
        if (e.match(k)) return "property";
        if (m.indexOf(r) > -1) return e.next(), "operator";
        if (p.indexOf(r) > -1) return e.next(), e.match(".."), "punctuation";
        if ('"' == r || "'" == r) {
            e.next();
            var o = i(r);
            return t.tokenize.push(o), o(e, t)
        }
        if (e.match(y)) {
            var s = e.current();
            return f.hasOwnProperty(s) ? "variable-2" : d.hasOwnProperty(s) ? "atom" : c.hasOwnProperty(s) ? (u.hasOwnProperty(s) && (t.prev = "define"), "keyword") : "define" == n ? "def" : "variable"
        }
        return e.next(), null
    }

    function r() {
        var e = 0;
        return function (t, r, i) {
            var a = n(t, r, i);
            if ("punctuation" == a) if ("(" == t.current()) ++e; else if (")" == t.current()) {
                if (0 == e) return t.backUp(1), r.tokenize.pop(), r.tokenize[r.tokenize.length - 1](t, r);
                --e
            }
            return a
        }
    }

    function i(e) {
        return function (t, n) {
            for (var i, a = !1; i = t.next();) if (a) {
                if ("(" == i) return n.tokenize.push(r()), "string";
                a = !1
            } else {
                if (i == e) break;
                a = "\\" == i
            }
            return n.tokenize.pop(), "string"
        }
    }

    function a(e, t) {
        return e.match(/^(?:[^*]|\*(?!\/))*/), e.match("*/") && t.tokenize.pop(), "comment"
    }

    function o(e, t, n) {
        this.prev = e, this.align = t, this.indented = n
    }

    function s(e, t) {
        var n = t.match(/^\s*($|\/[\/\*])/, !1) ? null : t.column() + 1;
        e.context = new o(e.context, n, e.indented)
    }

    function l(e) {
        e.context && (e.indented = e.context.indented, e.context = e.context.prev)
    }

    var c = t(["_", "var", "let", "class", "enum", "extension", "import", "protocol", "struct", "func", "typealias", "associatedtype", "open", "public", "internal", "fileprivate", "private", "deinit", "init", "new", "override", "self", "subscript", "super", "convenience", "dynamic", "final", "indirect", "lazy", "required", "static", "unowned", "unowned(safe)", "unowned(unsafe)", "weak", "as", "is", "break", "case", "continue", "default", "else", "fallthrough", "for", "guard", "if", "in", "repeat", "switch", "where", "while", "defer", "return", "inout", "mutating", "nonmutating", "catch", "do", "rethrows", "throw", "throws", "try", "didSet", "get", "set", "willSet", "assignment", "associativity", "infix", "left", "none", "operator", "postfix", "precedence", "precedencegroup", "prefix", "right", "Any", "AnyObject", "Type", "dynamicType", "Self", "Protocol", "__COLUMN__", "__FILE__", "__FUNCTION__", "__LINE__"]),
        u = t(["var", "let", "class", "enum", "extension", "import", "protocol", "struct", "func", "typealias", "associatedtype", "for"]),
        d = t(["true", "false", "nil", "self", "super", "_"]),
        f = t(["Array", "Bool", "Character", "Dictionary", "Double", "Float", "Int", "Int8", "Int16", "Int32", "Int64", "Never", "Optional", "Set", "String", "UInt8", "UInt16", "UInt32", "UInt64", "Void"]),
        m = "+-/*%=|&<>~^?!", p = ":;,.(){}[]", h = /^\-?0b[01][01_]*/, g = /^\-?0o[0-7][0-7_]*/,
        b = /^\-?0x[\dA-Fa-f][\dA-Fa-f_]*(?:(?:\.[\dA-Fa-f][\dA-Fa-f_]*)?[Pp]\-?\d[\d_]*)?/,
        _ = /^\-?\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee]\-?\d[\d_]*)?/, y = /^\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1/,
        k = /^\.(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/, v = /^\#[A-Za-z]+/,
        x = /^@(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/;
    e.defineMode("swift", function (e) {
        return {
            startState: function () {
                return {prev: null, context: null, indented: 0, tokenize: []}
            },
            token: function (e, t) {
                var r = t.prev;
                t.prev = null;
                var i = (t.tokenize[t.tokenize.length - 1] || n)(e, t, r);
                if (i && "comment" != i ? t.prev || (t.prev = i) : t.prev = r, "punctuation" == i) {
                    var a = /[\(\[\{]|([\]\)\}])/.exec(e.current());
                    a && (a[1] ? l : s)(t, e)
                }
                return i
            },
            indent: function (t, n) {
                var r = t.context;
                if (!r) return 0;
                var i = /^[\]\}\)]/.test(n);
                return null != r.align ? r.align - (i ? 1 : 0) : r.indented + (i ? 0 : e.indentUnit)
            },
            electricInput: /^\s*[\)\}\]]$/,
            lineComment: "//",
            blockCommentStart: "/*",
            blockCommentEnd: "*/",
            fold: "brace",
            closeBrackets: "()[]{}''\"\"``"
        }
    }), e.defineMIME("text/x-swift", "swift")
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";
    e.registerHelper("wordChars", "r", /[\w.]/), e.defineMode("r", function (e) {
        function t(e) {
            for (var t = e.split(" "), n = {}, r = 0; r < t.length; ++r) n[t[r]] = !0;
            return n
        }

        function n(e, t) {
            s = null;
            var n = e.next();
            if ("#" == n) return e.skipToEnd(), "comment";
            if ("0" == n && e.eat("x")) return e.eatWhile(/[\da-f]/i), "number";
            if ("." == n && e.eat(/\d/)) return e.match(/\d*(?:e[+\-]?\d+)?/), "number";
            if (/\d/.test(n)) return e.match(/\d*(?:\.\d+)?(?:e[+\-]\d+)?L?/), "number";
            if ("'" == n || '"' == n) return t.tokenize = r(n), "string";
            if ("`" == n) return e.match(/[^`]+`/), "variable-3";
            if ("." == n && e.match(/.[.\d]+/)) return "keyword";
            if (/[\w\.]/.test(n) && "_" != n) {
                e.eatWhile(/[\w\.]/);
                var i = e.current();
                return l.propertyIsEnumerable(i) ? "atom" : u.propertyIsEnumerable(i) ? (d.propertyIsEnumerable(i) && !e.match(/\s*if(\s+|$)/, !1) && (s = "block"), "keyword") : c.propertyIsEnumerable(i) ? "builtin" : "variable"
            }
            return "%" == n ? (e.skipTo("%") && e.next(), "operator variable-2") : "<" == n && e.eat("-") || "<" == n && e.match("<-") || "-" == n && e.match(/>>?/) ? "operator arrow" : "=" == n && t.ctx.argList ? "arg-is" : f.test(n) ? "$" == n ? "operator dollar" : (e.eatWhile(f), "operator") : /[\(\){}\[\];]/.test(n) ? (s = n, ";" == n ? "semi" : null) : null
        }

        function r(e) {
            return function (t, r) {
                if (t.eat("\\")) {
                    var i = t.next();
                    return "x" == i ? t.match(/^[a-f0-9]{2}/i) : ("u" == i || "U" == i) && t.eat("{") && t.skipTo("}") ? t.next() : "u" == i ? t.match(/^[a-f0-9]{4}/i) : "U" == i ? t.match(/^[a-f0-9]{8}/i) : /[0-7]/.test(i) && t.match(/^[0-7]{1,2}/), "string-2"
                }
                for (var a; null != (a = t.next());) {
                    if (a == e) {
                        r.tokenize = n;
                        break
                    }
                    if ("\\" == a) {
                        t.backUp(1);
                        break
                    }
                }
                return "string"
            }
        }

        function i(e, t, n) {
            e.ctx = {type: t, indent: e.indent, flags: 0, column: n.column(), prev: e.ctx}
        }

        function a(e, t) {
            var n = e.ctx;
            e.ctx = {type: n.type, indent: n.indent, flags: n.flags | t, column: n.column, prev: n.prev}
        }

        function o(e) {
            e.indent = e.ctx.indent, e.ctx = e.ctx.prev
        }

        var s, l = t("NULL NA Inf NaN NA_integer_ NA_real_ NA_complex_ NA_character_"),
            c = t("list quote bquote eval return call parse deparse"),
            u = t("if else repeat while function for in next break"), d = t("if else repeat while function for"),
            f = /[+\-*\/^<>=!&|~$:]/;
        return {
            startState: function () {
                return {tokenize: n, ctx: {type: "top", indent: -e.indentUnit, flags: 2}, indent: 0, afterIdent: !1}
            }, token: function (e, t) {
                if (e.sol() && (0 == (3 & t.ctx.flags) && (t.ctx.flags |= 2), 4 & t.ctx.flags && o(t), t.indent = e.indentation()), e.eatSpace()) return null;
                var n = t.tokenize(e, t);
                return "comment" != n && 0 == (2 & t.ctx.flags) && a(t, 1), ";" != s && "{" != s && "}" != s || "block" != t.ctx.type || o(t), "{" == s ? i(t, "}", e) : "(" == s ? (i(t, ")", e), t.afterIdent && (t.ctx.argList = !0)) : "[" == s ? i(t, "]", e) : "block" == s ? i(t, "block", e) : s == t.ctx.type ? o(t) : "block" == t.ctx.type && "comment" != n && a(t, 4), t.afterIdent = "variable" == n || "keyword" == n, n
            }, indent: function (t, r) {
                if (t.tokenize != n) return 0;
                var i = r && r.charAt(0), a = t.ctx, o = i == a.type;
                return 4 & a.flags && (a = a.prev), "block" == a.type ? a.indent + ("{" == i ? 0 : e.indentUnit) : 1 & a.flags ? a.column + (o ? 0 : 1) : a.indent + (o ? 0 : e.indentUnit)
            }, lineComment: "#"
        }
    }), e.defineMIME("text/x-rsrc", "r")
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";

    function t(e) {
        for (var t = {}, n = e.split(" "), r = 0; r < n.length; ++r) t[n[r]] = !0;
        return t
    }

    e.defineMode("d", function (t, n) {
        function r(e, t) {
            var n = e.next();
            if (b[n]) {
                var r = b[n](e, t);
                if (!1 !== r) return r
            }
            if ('"' == n || "'" == n || "`" == n) return t.tokenize = i(n), t.tokenize(e, t);
            if (/[\[\]{}\(\),;\:\.]/.test(n)) return u = n, null;
            if (/\d/.test(n)) return e.eatWhile(/[\w\.]/), "number";
            if ("/" == n) {
                if (e.eat("+")) return t.tokenize = a, o(e, t);
                if (e.eat("*")) return t.tokenize = a, a(e, t);
                if (e.eat("/")) return e.skipToEnd(), "comment"
            }
            if (y.test(n)) return e.eatWhile(y), "operator";
            e.eatWhile(/[\w\$_\xa1-\uffff]/);
            var s = e.current();
            return m.propertyIsEnumerable(s) ? (h.propertyIsEnumerable(s) && (u = "newstatement"), "keyword") : p.propertyIsEnumerable(s) ? (h.propertyIsEnumerable(s) && (u = "newstatement"), "builtin") : g.propertyIsEnumerable(s) ? "atom" : "variable"
        }

        function i(e) {
            return function (t, n) {
                for (var r, i = !1, a = !1; null != (r = t.next());) {
                    if (r == e && !i) {
                        a = !0;
                        break
                    }
                    i = !i && "\\" == r
                }
                return (a || !i && !_) && (n.tokenize = null), "string"
            }
        }

        function a(e, t) {
            for (var n, r = !1; n = e.next();) {
                if ("/" == n && r) {
                    t.tokenize = null;
                    break
                }
                r = "*" == n
            }
            return "comment"
        }

        function o(e, t) {
            for (var n, r = !1; n = e.next();) {
                if ("/" == n && r) {
                    t.tokenize = null;
                    break
                }
                r = "+" == n
            }
            return "comment"
        }

        function s(e, t, n, r, i) {
            this.indented = e, this.column = t, this.type = n, this.align = r, this.prev = i
        }

        function l(e, t, n) {
            var r = e.indented;
            return e.context && "statement" == e.context.type && (r = e.context.indented), e.context = new s(r, t, n, null, e.context)
        }

        function c(e) {
            var t = e.context.type;
            return ")" != t && "]" != t && "}" != t || (e.indented = e.context.indented), e.context = e.context.prev
        }

        var u, d = t.indentUnit, f = n.statementIndentUnit || d, m = n.keywords || {}, p = n.builtin || {},
            h = n.blockKeywords || {}, g = n.atoms || {}, b = n.hooks || {}, _ = n.multiLineStrings,
            y = /[+\-*&%=<>!?|\/]/;
        return {
            startState: function (e) {
                return {tokenize: null, context: new s((e || 0) - d, 0, "top", !1), indented: 0, startOfLine: !0}
            }, token: function (e, t) {
                var n = t.context;
                if (e.sol() && (null == n.align && (n.align = !1), t.indented = e.indentation(), t.startOfLine = !0), e.eatSpace()) return null;
                u = null;
                var i = (t.tokenize || r)(e, t);
                if ("comment" == i || "meta" == i) return i;
                if (null == n.align && (n.align = !0), ";" != u && ":" != u && "," != u || "statement" != n.type) if ("{" == u) l(t, e.column(), "}"); else if ("[" == u) l(t, e.column(), "]"); else if ("(" == u) l(t, e.column(), ")"); else if ("}" == u) {
                    for (; "statement" == n.type;) n = c(t);
                    for ("}" == n.type && (n = c(t)); "statement" == n.type;) n = c(t)
                } else u == n.type ? c(t) : (("}" == n.type || "top" == n.type) && ";" != u || "statement" == n.type && "newstatement" == u) && l(t, e.column(), "statement"); else c(t);
                return t.startOfLine = !1, i
            }, indent: function (t, n) {
                if (t.tokenize != r && null != t.tokenize) return e.Pass;
                var i = t.context, a = n && n.charAt(0);
                "statement" == i.type && "}" == a && (i = i.prev);
                var o = a == i.type;
                return "statement" == i.type ? i.indented + ("{" == a ? 0 : f) : i.align ? i.column + (o ? 0 : 1) : i.indented + (o ? 0 : d)
            }, electricChars: "{}"
        }
    });
    var n = "body catch class do else enum for foreach foreach_reverse if in interface mixin out scope struct switch try union unittest version while with";
    e.defineMIME("text/x-d", {
        name: "d",
        keywords: t("abstract alias align asm assert auto break case cast cdouble cent cfloat const continue debug default delegate delete deprecated export extern final finally function goto immutable import inout invariant is lazy macro module new nothrow override package pragma private protected public pure ref return shared short static super synchronized template this throw typedef typeid typeof volatile __FILE__ __LINE__ __gshared __traits __vector __parameters " + n),
        blockKeywords: t(n),
        builtin: t("bool byte char creal dchar double float idouble ifloat int ireal long real short ubyte ucent uint ulong ushort wchar wstring void size_t sizediff_t"),
        atoms: t("exit failure success true false null"),
        hooks: {
            "@": function (e, t) {
                return e.eatWhile(/[\w\$_]/), "meta"
            }
        }
    })
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";
    e.defineMode("diff", function () {
        var e = {"+": "positive", "-": "negative", "@": "meta"};
        return {
            token: function (t) {
                var n = t.string.search(/[\t ]+?$/);
                if (!t.sol() || 0 === n) return t.skipToEnd(), ("error " + (e[t.string.charAt(0)] || "")).replace(/ $/, "");
                var r = e[t.peek()] || t.skipToEnd();
                return -1 === n ? t.skipToEnd() : t.pos = n, r
            }
        }
    }), e.defineMIME("text/x-diff", "diff")
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";
    e.defineMIME("text/x-erlang", "erlang"), e.defineMode("erlang", function (t) {
        function n(e, t) {
            if (t.in_string) return t.in_string = !a(e), u(t, e, "string");
            if (t.in_atom) return t.in_atom = !o(e), u(t, e, "atom");
            if (e.eatSpace()) return u(t, e, "whitespace");
            if (!p(t) && e.match(/-\s*[a-zß-öø-ÿ][\wØ-ÞÀ-Öß-öø-ÿ]*/)) return c(e.current(), z) ? u(t, e, "type") : u(t, e, "attribute");
            var n = e.next();
            if ("%" == n) return e.skipToEnd(), u(t, e, "comment");
            if (":" == n) return u(t, e, "colon");
            if ("?" == n) return e.eatSpace(), e.eatWhile(F), u(t, e, "macro");
            if ("#" == n) return e.eatSpace(), e.eatWhile(F), u(t, e, "record");
            if ("$" == n) return "\\" != e.next() || e.match(O) ? u(t, e, "number") : u(t, e, "error");
            if ("." == n) return u(t, e, "dot");
            if ("'" == n) {
                if (!(t.in_atom = !o(e))) {
                    if (e.match(/\s*\/\s*[0-9]/, !1)) return e.match(/\s*\/\s*[0-9]/, !0), u(t, e, "fun");
                    if (e.match(/\s*\(/, !1) || e.match(/\s*:/, !1)) return u(t, e, "function")
                }
                return u(t, e, "atom")
            }
            if ('"' == n) return t.in_string = !a(e), u(t, e, "string");
            if (/[A-Z_Ø-ÞÀ-Ö]/.test(n)) return e.eatWhile(F), u(t, e, "variable");
            if (/[a-z_ß-öø-ÿ]/.test(n)) {
                if (e.eatWhile(F), e.match(/\s*\/\s*[0-9]/, !1)) return e.match(/\s*\/\s*[0-9]/, !0), u(t, e, "fun");
                var s = e.current();
                return c(s, M) ? u(t, e, "keyword") : c(s, q) ? u(t, e, "operator") : e.match(/\s*\(/, !1) ? !c(s, D) || ":" == p(t).token && "erlang" != p(t, 2).token ? c(s, R) ? u(t, e, "guard") : u(t, e, "function") : u(t, e, "builtin") : ":" == l(e) ? "erlang" == s ? u(t, e, "builtin") : u(t, e, "function") : c(s, ["true", "false"]) ? u(t, e, "boolean") : u(t, e, "atom")
            }
            var d = /[0-9]/, f = /[0-9a-zA-Z]/;
            return d.test(n) ? (e.eatWhile(d), e.eat("#") ? e.eatWhile(f) || e.backUp(1) : e.eat(".") && (e.eatWhile(d) ? e.eat(/[eE]/) && (e.eat(/[-+]/) ? e.eatWhile(d) || e.backUp(2) : e.eatWhile(d) || e.backUp(1)) : e.backUp(1)), u(t, e, "number")) : r(e, j, $) ? u(t, e, "open_paren") : r(e, P, L) ? u(t, e, "close_paren") : i(e, C, T) ? u(t, e, "separator") : i(e, I, A) ? u(t, e, "operator") : u(t, e, null)
        }

        function r(e, t, n) {
            if (1 == e.current().length && t.test(e.current())) {
                for (e.backUp(1); t.test(e.peek());) if (e.next(), c(e.current(), n)) return !0;
                e.backUp(e.current().length - 1)
            }
            return !1
        }

        function i(e, t, n) {
            if (1 == e.current().length && t.test(e.current())) {
                for (; t.test(e.peek());) e.next();
                for (; 0 < e.current().length;) {
                    if (c(e.current(), n)) return !0;
                    e.backUp(1)
                }
                e.next()
            }
            return !1
        }

        function a(e) {
            return s(e, '"', "\\")
        }

        function o(e) {
            return s(e, "'", "\\")
        }

        function s(e, t, n) {
            for (; !e.eol();) {
                var r = e.next();
                if (r == t) return !0;
                r == n && e.next()
            }
            return !1
        }

        function l(e) {
            var t = e.match(/([\n\s]+|%[^\n]*\n)*(.)/, !1);
            return t ? t.pop() : ""
        }

        function c(e, t) {
            return -1 < t.indexOf(e)
        }

        function u(e, t, n) {
            switch (h(e, f(n, t)), n) {
                case "atom":
                    return "atom";
                case "attribute":
                    return "attribute";
                case "boolean":
                    return "atom";
                case "builtin":
                    return "builtin";
                case "close_paren":
                case "colon":
                    return null;
                case "comment":
                    return "comment";
                case "dot":
                    return null;
                case "error":
                    return "error";
                case "fun":
                    return "meta";
                case "function":
                    return "tag";
                case "guard":
                    return "property";
                case "keyword":
                    return "keyword";
                case "macro":
                    return "variable-2";
                case "number":
                    return "number";
                case "open_paren":
                    return null;
                case "operator":
                    return "operator";
                case "record":
                    return "bracket";
                case "separator":
                    return null;
                case "string":
                    return "string";
                case "type":
                    return "def";
                case "variable":
                    return "variable";
                default:
                    return null
            }
        }

        function d(e, t, n, r) {
            return {token: e, column: t, indent: n, type: r}
        }

        function f(e, t) {
            return d(t.current(), t.column(), t.indentation(), e)
        }

        function m(e) {
            return d(e, 0, 0, e)
        }

        function p(e, t) {
            var n = e.tokenStack.length, r = t || 1;
            return !(n < r) && e.tokenStack[n - r]
        }

        function h(e, t) {
            "comment" != t.type && "whitespace" != t.type && (e.tokenStack = g(e.tokenStack, t), e.tokenStack = b(e.tokenStack))
        }

        function g(e, t) {
            var n = e.length - 1;
            return 0 < n && "record" === e[n].type && "dot" === t.type ? e.pop() : 0 < n && "group" === e[n].type ? (e.pop(), e.push(t)) : e.push(t), e
        }

        function b(e) {
            if (!e.length) return e;
            var t = e.length - 1;
            if ("dot" === e[t].type) return [];
            if (t > 1 && "fun" === e[t].type && "fun" === e[t - 1].token) return e.slice(0, t - 1);
            switch (e[t].token) {
                case "}":
                    return _(e, {g: ["{"]});
                case "]":
                    return _(e, {i: ["["]});
                case ")":
                    return _(e, {i: ["("]});
                case ">>":
                    return _(e, {i: ["<<"]});
                case "end":
                    return _(e, {i: ["begin", "case", "fun", "if", "receive", "try"]});
                case ",":
                    return _(e, {e: ["begin", "try", "when", "->", ",", "(", "[", "{", "<<"]});
                case "->":
                    return _(e, {r: ["when"], m: ["try", "if", "case", "receive"]});
                case ";":
                    return _(e, {E: ["case", "fun", "if", "receive", "try", "when"]});
                case "catch":
                    return _(e, {e: ["try"]});
                case "of":
                    return _(e, {e: ["case"]});
                case "after":
                    return _(e, {e: ["receive", "try"]});
                default:
                    return e
            }
        }

        function _(e, t) {
            for (var n in t) for (var r = e.length - 1, i = t[n], a = r - 1; -1 < a; a--) if (c(e[a].token, i)) {
                var o = e.slice(0, a);
                switch (n) {
                    case "m":
                        return o.concat(e[a]).concat(e[r]);
                    case "r":
                        return o.concat(e[r]);
                    case "i":
                        return o;
                    case "g":
                        return o.concat(m("group"));
                    case "E":
                    case "e":
                        return o.concat(e[a])
                }
            }
            return "E" == n ? [] : e
        }

        function y(n, r) {
            var i, a = t.indentUnit, o = k(r), s = p(n, 1), l = p(n, 2);
            return n.in_string || n.in_atom ? e.Pass : l ? "when" == s.token ? s.column + a : "when" === o && "function" === l.type ? l.indent + a : "(" === o && "fun" === s.token ? s.column + 3 : "catch" === o && (i = w(n, ["try"])) ? i.column : c(o, ["end", "after", "of"]) ? (i = w(n, ["begin", "case", "fun", "if", "receive", "try"])) ? i.column : e.Pass : c(o, L) ? (i = w(n, $)) ? i.column : e.Pass : c(s.token, [",", "|", "||"]) || c(o, [",", "|", "||"]) ? (i = v(n)) ? i.column + i.token.length : a : "->" == s.token ? c(l.token, ["receive", "case", "if", "try"]) ? l.column + a + a : l.column + a : c(s.token, $) ? s.column + s.token.length : (i = x(n), E(i) ? i.column + a : 0) : 0
        }

        function k(e) {
            var t = e.match(/,|[a-z]+|\}|\]|\)|>>|\|+|\(/);
            return E(t) && 0 === t.index ? t[0] : ""
        }

        function v(e) {
            var t = e.tokenStack.slice(0, -1), n = S(t, "type", ["open_paren"]);
            return !!E(t[n]) && t[n]
        }

        function x(e) {
            var t = e.tokenStack, n = S(t, "type", ["open_paren", "separator", "keyword"]),
                r = S(t, "type", ["operator"]);
            return E(n) && E(r) && n < r ? t[n + 1] : !!E(n) && t[n]
        }

        function w(e, t) {
            var n = e.tokenStack, r = S(n, "token", t);
            return !!E(n[r]) && n[r]
        }

        function S(e, t, n) {
            for (var r = e.length - 1; -1 < r; r--) if (c(e[r][t], n)) return r;
            return !1
        }

        function E(e) {
            return !1 !== e && null != e
        }

        var z = ["-type", "-spec", "-export_type", "-opaque"],
            M = ["after", "begin", "catch", "case", "cond", "end", "fun", "if", "let", "of", "query", "receive", "try", "when"],
            C = /[\->,;]/, T = ["->", ";", ","],
            q = ["and", "andalso", "band", "bnot", "bor", "bsl", "bsr", "bxor", "div", "not", "or", "orelse", "rem", "xor"],
            I = /[\+\-\*\/<>=\|:!]/,
            A = ["=", "+", "-", "*", "/", ">", ">=", "<", "=<", "=:=", "==", "=/=", "/=", "||", "<-", "!"],
            j = /[<\(\[\{]/, $ = ["<<", "(", "[", "{"], P = /[>\)\]\}]/, L = ["}", "]", ")", ">>"],
            R = ["is_atom", "is_binary", "is_bitstring", "is_boolean", "is_float", "is_function", "is_integer", "is_list", "is_number", "is_pid", "is_port", "is_record", "is_reference", "is_tuple", "atom", "binary", "bitstring", "boolean", "function", "integer", "list", "number", "pid", "port", "record", "reference", "tuple"],
            D = ["abs", "adler32", "adler32_combine", "alive", "apply", "atom_to_binary", "atom_to_list", "binary_to_atom", "binary_to_existing_atom", "binary_to_list", "binary_to_term", "bit_size", "bitstring_to_list", "byte_size", "check_process_code", "contact_binary", "crc32", "crc32_combine", "date", "decode_packet", "delete_module", "disconnect_node", "element", "erase", "exit", "float", "float_to_list", "garbage_collect", "get", "get_keys", "group_leader", "halt", "hd", "integer_to_list", "internal_bif", "iolist_size", "iolist_to_binary", "is_alive", "is_atom", "is_binary", "is_bitstring", "is_boolean", "is_float", "is_function", "is_integer", "is_list", "is_number", "is_pid", "is_port", "is_process_alive", "is_record", "is_reference", "is_tuple", "length", "link", "list_to_atom", "list_to_binary", "list_to_bitstring", "list_to_existing_atom", "list_to_float", "list_to_integer", "list_to_pid", "list_to_tuple", "load_module", "make_ref", "module_loaded", "monitor_node", "node", "node_link", "node_unlink", "nodes", "notalive", "now", "open_port", "pid_to_list", "port_close", "port_command", "port_connect", "port_control", "pre_loaded", "process_flag", "process_info", "processes", "purge_module", "put", "register", "registered", "round", "self", "setelement", "size", "spawn", "spawn_link", "spawn_monitor", "spawn_opt", "split_binary", "statistics", "term_to_binary", "time", "throw", "tl", "trunc", "tuple_size", "tuple_to_list", "unlink", "unregister", "whereis"],
            F = /[\w@Ø-ÞÀ-Öß-öø-ÿ]/, O = /[0-7]{1,3}|[bdefnrstv\\"']|\^[a-zA-Z]|x[0-9a-zA-Z]{2}|x{[0-9a-zA-Z]+}/;
        return {
            startState: function () {
                return {tokenStack: [], in_string: !1, in_atom: !1}
            }, token: function (e, t) {
                return n(e, t)
            }, indent: function (e, t) {
                return y(e, t)
            }, lineComment: "%"
        }
    })
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";
    e.defineMode("http", function () {
        function e(e, t) {
            return e.skipToEnd(), t.cur = o, "error"
        }

        function t(t, r) {
            return t.match(/^HTTP\/\d\.\d/) ? (r.cur = n, "keyword") : t.match(/^[A-Z]+/) && /[ \t]/.test(t.peek()) ? (r.cur = i, "keyword") : e(t, r)
        }

        function n(t, n) {
            var i = t.match(/^\d+/);
            if (!i) return e(t, n);
            n.cur = r;
            var a = Number(i[0]);
            return a >= 100 && a < 200 ? "positive informational" : a >= 200 && a < 300 ? "positive success" : a >= 300 && a < 400 ? "positive redirect" : a >= 400 && a < 500 ? "negative client-error" : a >= 500 && a < 600 ? "negative server-error" : "error"
        }

        function r(e, t) {
            return e.skipToEnd(), t.cur = o, null
        }

        function i(e, t) {
            return e.eatWhile(/\S/), t.cur = a, "string-2"
        }

        function a(t, n) {
            return t.match(/^HTTP\/\d\.\d$/) ? (n.cur = o, "keyword") : e(t, n)
        }

        function o(e) {
            return e.sol() && !e.eat(/[ \t]/) ? e.match(/^.*?:/) ? "atom" : (e.skipToEnd(), "error") : (e.skipToEnd(), "string")
        }

        function s(e) {
            return e.skipToEnd(), null
        }

        return {
            token: function (e, t) {
                var n = t.cur;
                return n != o && n != s && e.eatSpace() ? null : n(e, t)
            }, blankLine: function (e) {
                e.cur = s
            }, startState: function () {
                return {cur: t}
            }
        }
    }), e.defineMIME("message/http", "http")
}), CodeMirror.defineMode("jade", function () {
    var e = /^(?:~|!|%|\^|\*|\+|=|\\|:|;|,|\/|\?|&|<|>|\|)/, t = /^(\(|\[)/, n = /^(\)|\])/,
        r = /^(if|else|return|var|function|include|doctype|each)/, i = /^(#|{|}|\.)/, a = /^(in)/,
        o = /^(html|head|title|meta|link|script|body|br|div|input|span|a|img)/, s = /^(h1|h2|h3|h4|h5|p|strong|em)/;
    return {
        startState: function () {
            return {inString: !1, stringType: "", beforeTag: !0, justMatchedKeyword: !1, afterParen: !1}
        }, token: function (l, c) {
            if (c.inString || '"' != l.peek() && "'" != l.peek() || (c.stringType = l.peek(), l.next(), c.inString = !0), c.inString) return l.skipTo(c.stringType) ? (l.next(), c.inString = !1) : l.skipToEnd(), c.justMatchedKeyword = !1, "string";
            if (l.sol() && l.eatSpace()) {
                if (l.match(r)) return c.justMatchedKeyword = !0, l.eatSpace(), "keyword";
                if (l.match(o) || l.match(s)) return c.justMatchedKeyword = !0, "variable"
            } else {
                if (l.sol() && l.match(r)) return c.justMatchedKeyword = !0, l.eatSpace(), "keyword";
                if (l.sol() && (l.match(o) || l.match(s))) return c.justMatchedKeyword = !0, "variable";
                if (l.eatSpace()) {
                    if (c.justMatchedKeyword = !1, l.match(a) && l.eatSpace()) return c.justMatchedKeyword = !0, "keyword"
                } else {
                    if (l.match(e)) return c.justMatchedKeyword = !1, "atom";
                    if (l.match(t)) return c.afterParen = !0, c.justMatchedKeyword = !0, "def";
                    if (l.match(n)) return c.afterParen = !1, c.justMatchedKeyword = !0, "def";
                    if (l.match(i)) return c.justMatchedKeyword = !0, "keyword";
                    if (l.eatSpace()) c.justMatchedKeyword = !1; else {
                        if (l.next(), c.justMatchedKeyword) return "property";
                        if (c.afterParen) return "property"
                    }
                }
            }
            return null
        }
    }
}), CodeMirror.defineMIME("text/x-jade", "jade"), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror"), require("../python/python"), require("../stex/stex"), require("../../addon/mode/overlay")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror", "../python/python", "../stex/stex", "../../addon/mode/overlay"], e) : e(CodeMirror)
}(function (e) {
    "use strict";
    e.defineMode("rst", function (t, n) {
        var r = /^\*\*[^\*\s](?:[^\*]*[^\*\s])?\*\*/, i = /^\*[^\*\s](?:[^\*]*[^\*\s])?\*/,
            a = /^``[^`\s](?:[^`]*[^`\s])``/, o = /^(?:[\d]+(?:[\.,]\d+)*)/, s = /^(?:\s\+[\d]+(?:[\.,]\d+)*)/,
            l = /^(?:\s\-[\d]+(?:[\.,]\d+)*)/,
            c = new RegExp("^[Hh][Tt][Tt][Pp][Ss]?://(?:[\\d\\w.-]+)\\.(?:\\w{2,6})(?:/[\\d\\w\\#\\%\\&\\-\\.\\,\\/\\:\\=\\?\\~]+)*"),
            u = {
                token: function (e) {
                    if (e.match(r) && e.match(/\W+|$/, !1)) return "strong";
                    if (e.match(i) && e.match(/\W+|$/, !1)) return "em";
                    if (e.match(a) && e.match(/\W+|$/, !1)) return "string-2";
                    if (e.match(o)) return "number";
                    if (e.match(s)) return "positive";
                    if (e.match(l)) return "negative";
                    if (e.match(c)) return "link";
                    for (; !(null == e.next() || e.match(r, !1) || e.match(i, !1) || e.match(a, !1) || e.match(o, !1) || e.match(s, !1) || e.match(l, !1) || e.match(c, !1));) ;
                    return null
                }
            }, d = e.getMode(t, n.backdrop || "rst-base");
        return e.overlayMode(d, u, !0)
    }, "python", "stex"), e.defineMode("rst-base", function (t) {
        function n(e) {
            var t = Array.prototype.slice.call(arguments, 1);
            return e.replace(/{(\d+)}/g, function (e, n) {
                return void 0 !== t[n] ? t[n] : e
            })
        }

        function r(t, n) {
            var a = null;
            if (t.sol() && t.match(G, !1)) u(n, l, {
                mode: m,
                local: e.startState(m)
            }); else if (t.sol() && t.match(S)) u(n, i), a = "meta"; else if (t.sol() && t.match(w)) u(n, r), a = "header"; else if (f(n) == P || t.match(P, !1)) switch (d(n)) {
                case 0:
                    u(n, r, c(P, 1)), t.match(/^:/), a = "meta";
                    break;
                case 1:
                    u(n, r, c(P, 2)), t.match(_), a = "keyword", t.current().match(/^(?:math|latex)/) && (n.tmp_stex = !0);
                    break;
                case 2:
                    u(n, r, c(P, 3)), t.match(/^:`/), a = "meta";
                    break;
                case 3:
                    if (n.tmp_stex && (n.tmp_stex = void 0, n.tmp = {mode: p, local: e.startState(p)}), n.tmp) {
                        if ("`" == t.peek()) {
                            u(n, r, c(P, 4)), n.tmp = void 0;
                            break
                        }
                        a = n.tmp.mode.token(t, n.tmp.local);
                        break
                    }
                    u(n, r, c(P, 4)), t.match(x), a = "string";
                    break;
                case 4:
                    u(n, r, c(P, 5)), t.match(/^`/), a = "meta";
                    break;
                case 5:
                    u(n, r, c(P, 6)), t.match(g);
                    break;
                default:
                    u(n, r)
            } else if (f(n) == L || t.match(L, !1)) switch (d(n)) {
                case 0:
                    u(n, r, c(L, 1)), t.match(/^`/), a = "meta";
                    break;
                case 1:
                    u(n, r, c(L, 2)), t.match(x), a = "string";
                    break;
                case 2:
                    u(n, r, c(L, 3)), t.match(/^`:/), a = "meta";
                    break;
                case 3:
                    u(n, r, c(L, 4)), t.match(_), a = "keyword";
                    break;
                case 4:
                    u(n, r, c(L, 5)), t.match(/^:/), a = "meta";
                    break;
                case 5:
                    u(n, r, c(L, 6)), t.match(g);
                    break;
                default:
                    u(n, r)
            } else if (f(n) == R || t.match(R, !1)) switch (d(n)) {
                case 0:
                    u(n, r, c(R, 1)), t.match(/^:/), a = "meta";
                    break;
                case 1:
                    u(n, r, c(R, 2)), t.match(_), a = "keyword";
                    break;
                case 2:
                    u(n, r, c(R, 3)), t.match(/^:/), a = "meta";
                    break;
                case 3:
                    u(n, r, c(R, 4)), t.match(g);
                    break;
                default:
                    u(n, r)
            } else if (f(n) == q || t.match(q, !1)) switch (d(n)) {
                case 0:
                    u(n, r, c(q, 1)), t.match(O), a = "variable-2";
                    break;
                case 1:
                    u(n, r, c(q, 2)), t.match(/^_?_?/) && (a = "link");
                    break;
                default:
                    u(n, r)
            } else if (t.match(I)) u(n, r), a = "quote"; else if (t.match(A)) u(n, r), a = "quote"; else if (t.match(j)) u(n, r), t.peek() && !t.peek().match(/^\W$/) || (a = "link"); else if (f(n) == $ || t.match($, !1)) switch (d(n)) {
                case 0:
                    !t.peek() || t.peek().match(/^\W$/) ? u(n, r, c($, 1)) : t.match($);
                    break;
                case 1:
                    u(n, r, c($, 2)), t.match(/^`/), a = "link";
                    break;
                case 2:
                    u(n, r, c($, 3)), t.match(x);
                    break;
                case 3:
                    u(n, r, c($, 4)), t.match(/^`_/), a = "link";
                    break;
                default:
                    u(n, r)
            } else t.match(V) ? u(n, o) : t.next() && u(n, r);
            return a
        }

        function i(t, n) {
            var o = null;
            if (f(n) == M || t.match(M, !1)) switch (d(n)) {
                case 0:
                    u(n, i, c(M, 1)), t.match(O), o = "variable-2";
                    break;
                case 1:
                    u(n, i, c(M, 2)), t.match(W);
                    break;
                case 2:
                    u(n, i, c(M, 3)), t.match(N), o = "keyword";
                    break;
                case 3:
                    u(n, i, c(M, 4)), t.match(U), o = "meta";
                    break;
                default:
                    u(n, r)
            } else if (f(n) == z || t.match(z, !1)) switch (d(n)) {
                case 0:
                    u(n, i, c(z, 1)), t.match(D), o = "keyword", t.current().match(/^(?:math|latex)/) ? n.tmp_stex = !0 : t.current().match(/^python/) && (n.tmp_py = !0);
                    break;
                case 1:
                    u(n, i, c(z, 2)), t.match(F), o = "meta", (t.match(/^latex\s*$/) || n.tmp_stex) && (n.tmp_stex = void 0, u(n, l, {
                        mode: p,
                        local: e.startState(p)
                    }));
                    break;
                case 2:
                    u(n, i, c(z, 3)), (t.match(/^python\s*$/) || n.tmp_py) && (n.tmp_py = void 0, u(n, l, {
                        mode: m,
                        local: e.startState(m)
                    }));
                    break;
                default:
                    u(n, r)
            } else if (f(n) == E || t.match(E, !1)) switch (d(n)) {
                case 0:
                    u(n, i, c(E, 1)), t.match(B), t.match(H), o = "link";
                    break;
                case 1:
                    u(n, i, c(E, 2)), t.match(Z), o = "meta";
                    break;
                default:
                    u(n, r)
            } else t.match(C) ? (u(n, r), o = "quote") : t.match(T) ? (u(n, r), o = "quote") : (t.eatSpace(), t.eol() ? u(n, r) : (t.skipToEnd(), u(n, a), o = "comment"));
            return o
        }

        function a(e, t) {
            return s(e, t, "comment")
        }

        function o(e, t) {
            return s(e, t, "meta")
        }

        function s(e, t, n) {
            return e.eol() || e.eatSpace() ? (e.skipToEnd(), n) : (u(t, r), null)
        }

        function l(e, t) {
            return t.ctx.mode && t.ctx.local ? e.sol() ? (e.eatSpace() || u(t, r), null) : t.ctx.mode.token(e, t.ctx.local) : (u(t, r), null)
        }

        function c(e, t, n, r) {
            return {phase: e, stage: t, mode: n, local: r}
        }

        function u(e, t, n) {
            e.tok = t, e.ctx = n || {}
        }

        function d(e) {
            return e.ctx.stage || 0
        }

        function f(e) {
            return e.ctx.phase
        }

        var m = e.getMode(t, "python"), p = e.getMode(t, "stex"), h = "(?:\\s*|\\W|$)", g = new RegExp(n("^{0}", h)),
            b = "(?:[^\\W\\d_](?:[\\w!\"#$%&'()\\*\\+,\\-\\./:;<=>\\?]*[^\\W_])?)", _ = new RegExp(n("^{0}", b)),
            y = n("(?:{0}|`{1}`)", b, "(?:[^\\W\\d_](?:[\\w\\s!\"#$%&'()\\*\\+,\\-\\./:;<=>\\?]*[^\\W_])?)"),
            k = "(?:[^\\s\\|](?:[^\\|]*[^\\s\\|])?)", v = "(?:[^\\`]+)", x = new RegExp(n("^{0}", v)),
            w = new RegExp("^([!'#$%&\"()*+,-./:;<=>?@\\[\\\\\\]^_`{|}~])\\1{3,}\\s*$"),
            S = new RegExp(n("^\\.\\.{0}", "\\s+")), E = new RegExp(n("^_{0}:{1}|^__:{1}", y, h)),
            z = new RegExp(n("^{0}::{1}", y, h)), M = new RegExp(n("^\\|{0}\\|{1}{2}::{3}", k, "\\s+", y, h)),
            C = new RegExp(n("^\\[(?:\\d+|#{0}?|\\*)]{1}", y, h)), T = new RegExp(n("^\\[{0}\\]{1}", y, h)),
            q = new RegExp(n("^\\|{0}\\|", k)), I = new RegExp(n("^\\[(?:\\d+|#{0}?|\\*)]_", y)),
            A = new RegExp(n("^\\[{0}\\]_", y)), j = new RegExp(n("^{0}__?", y)), $ = new RegExp(n("^`{0}`_", v)),
            P = new RegExp(n("^:{0}:`{1}`{2}", b, v, h)), L = new RegExp(n("^`{1}`:{0}:{2}", b, v, h)),
            R = new RegExp(n("^:{0}:{1}", b, h)), D = new RegExp(n("^{0}", y)), F = new RegExp(n("^::{0}", h)),
            O = new RegExp(n("^\\|{0}\\|", k)), W = new RegExp(n("^{0}", "\\s+")), N = new RegExp(n("^{0}", y)),
            U = new RegExp(n("^::{0}", h)), B = new RegExp("^_"), H = new RegExp(n("^{0}|_", y)),
            Z = new RegExp(n("^:{0}", h)), V = new RegExp("^::\\s*$"), G = new RegExp("^\\s+(?:>>>|In \\[\\d+\\]:)\\s");
        return {
            startState: function () {
                return {tok: r, ctx: c(void 0, 0)}
            }, copyState: function (t) {
                var n = t.ctx, r = t.tmp;
                return n.local && (n = {mode: n.mode, local: e.copyState(n.mode, n.local)}), r && (r = {
                    mode: r.mode,
                    local: e.copyState(r.mode, r.local)
                }), {tok: t.tok, ctx: n, tmp: r}
            }, innerMode: function (e) {
                return e.tmp ? {state: e.tmp.local, mode: e.tmp.mode} : e.ctx.mode ? {
                    state: e.ctx.local,
                    mode: e.ctx.mode
                } : null
            }, token: function (e, t) {
                return t.tok(e, t)
            }
        }
    }, "python", "stex"), e.defineMIME("text/x-rst", "rst")
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror"), require("../../addon/mode/simple")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror", "../../addon/mode/simple"], e) : e(CodeMirror)
}(function (e) {
    "use strict";
    e.defineSimpleMode("rust", {
        start: [{regex: /b?"/, token: "string", next: "string"}, {
            regex: /b?r"/,
            token: "string",
            next: "string_raw"
        }, {
            regex: /b?r#+"/,
            token: "string",
            next: "string_raw_hash"
        }, {
            regex: /'(?:[^'\\]|\\(?:[nrt0'"]|x[\da-fA-F]{2}|u\{[\da-fA-F]{6}\}))'/,
            token: "string-2"
        }, {
            regex: /b'(?:[^']|\\(?:['\\nrt0]|x[\da-fA-F]{2}))'/,
            token: "string-2"
        }, {
            regex: /(?:(?:[0-9][0-9_]*)(?:(?:[Ee][+-]?[0-9_]+)|\.[0-9_]+(?:[Ee][+-]?[0-9_]+)?)(?:f32|f64)?)|(?:0(?:b[01_]+|(?:o[0-7_]+)|(?:x[0-9a-fA-F_]+))|(?:[0-9][0-9_]*))(?:u8|u16|u32|u64|i8|i16|i32|i64|isize|usize)?/,
            token: "number"
        }, {
            regex: /(let(?:\s+mut)?|fn|enum|mod|struct|type)(\s+)([a-zA-Z_][a-zA-Z0-9_]*)/,
            token: ["keyword", null, "def"]
        }, {
            regex: /(?:abstract|alignof|as|box|break|continue|const|crate|do|else|enum|extern|fn|for|final|if|impl|in|loop|macro|match|mod|move|offsetof|override|priv|proc|pub|pure|ref|return|self|sizeof|static|struct|super|trait|type|typeof|unsafe|unsized|use|virtual|where|while|yield)\b/,
            token: "keyword"
        }, {
            regex: /\b(?:Self|isize|usize|char|bool|u8|u16|u32|u64|f16|f32|f64|i8|i16|i32|i64|str|Option)\b/,
            token: "atom"
        }, {
            regex: /\b(?:true|false|Some|None|Ok|Err)\b/,
            token: "builtin"
        }, {regex: /\b(fn)(\s+)([a-zA-Z_][a-zA-Z0-9_]*)/, token: ["keyword", null, "def"]}, {
            regex: /#!?\[.*\]/,
            token: "meta"
        }, {regex: /\/\/.*/, token: "comment"}, {
            regex: /\/\*/,
            token: "comment",
            next: "comment"
        }, {regex: /[-+\/*=<>!]+/, token: "operator"}, {
            regex: /[a-zA-Z_]\w*!/,
            token: "variable-3"
        }, {regex: /[a-zA-Z_]\w*/, token: "variable"}, {regex: /[\{\[\(]/, indent: !0}, {
            regex: /[\}\]\)]/,
            dedent: !0
        }],
        string: [{regex: /"/, token: "string", next: "start"}, {regex: /(?:[^\\"]|\\(?:.|$))*/, token: "string"}],
        string_raw: [{regex: /"/, token: "string", next: "start"}, {regex: /[^"]*/, token: "string"}],
        string_raw_hash: [{regex: /"#+/, token: "string", next: "start"}, {regex: /(?:[^"]|"(?!#))*/, token: "string"}],
        comment: [{regex: /.*?\*\//, token: "comment", next: "start"}, {regex: /.*/, token: "comment"}],
        meta: {
            dontIndentStates: ["comment"],
            electricInput: /^\s*\}$/,
            blockCommentStart: "/*",
            blockCommentEnd: "*/",
            lineComment: "//",
            fold: "brace"
        }
    }), e.defineMIME("text/x-rustsrc", "rust")
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";
    e.defineMode("jinja2", function () {
        function e(e, o) {
            var s = e.peek();
            if (o.incomment) return e.skipTo("#}") ? (e.eatWhile(/\#|}/), o.incomment = !1) : e.skipToEnd(), "comment";
            if (o.intag) {
                if (o.operator) {
                    if (o.operator = !1, e.match(i)) return "atom";
                    if (e.match(a)) return "number"
                }
                if (o.sign) {
                    if (o.sign = !1, e.match(i)) return "atom";
                    if (e.match(a)) return "number"
                }
                if (o.instring) return s == o.instring && (o.instring = !1), e.next(), "string";
                if ("'" == s || '"' == s) return o.instring = s, e.next(), "string";
                if (e.match(o.intag + "}") || e.eat("-") && e.match(o.intag + "}")) return o.intag = !1, "tag";
                if (e.match(n)) return o.operator = !0, "operator";
                if (e.match(r)) o.sign = !0; else if (e.eat(" ") || e.sol()) {
                    if (e.match(t)) return "keyword";
                    if (e.match(i)) return "atom";
                    if (e.match(a)) return "number";
                    e.sol() && e.next()
                } else e.next();
                return "variable"
            }
            if (e.eat("{")) {
                if (e.eat("#")) return o.incomment = !0, e.skipTo("#}") ? (e.eatWhile(/\#|}/), o.incomment = !1) : e.skipToEnd(), "comment";
                if (s = e.eat(/\{|%/)) return o.intag = s, "{" == s && (o.intag = "}"), e.eat("-"), "tag"
            }
            e.next()
        }

        var t = ["and", "as", "block", "endblock", "by", "cycle", "debug", "else", "elif", "extends", "filter", "endfilter", "firstof", "for", "endfor", "if", "endif", "ifchanged", "endifchanged", "ifequal", "endifequal", "ifnotequal", "endifnotequal", "in", "include", "load", "not", "now", "or", "parsed", "regroup", "reversed", "spaceless", "endspaceless", "ssi", "templatetag", "openblock", "closeblock", "openvariable", "closevariable", "openbrace", "closebrace", "opencomment", "closecomment", "widthratio", "url", "with", "endwith", "get_current_language", "trans", "endtrans", "noop", "blocktrans", "endblocktrans", "get_available_languages", "get_current_language_bidi", "plural"],
            n = /^[+\-*&%=<>!?|~^]/, r = /^[:\[\(\{]/, i = ["true", "false"], a = /^(\d[+\-\*\/])?\d+(\.\d+)?/;
        return t = new RegExp("((" + t.join(")|(") + "))\\b"), i = new RegExp("((" + i.join(")|(") + "))\\b"), {
            startState: function () {
                return {tokenize: e}
            }, token: function (e, t) {
                return t.tokenize(e, t)
            }
        }
    })
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror"), require("../htmlmixed/htmlmixed"), require("../../addon/mode/multiplex")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror", "../htmlmixed/htmlmixed", "../../addon/mode/multiplex"], e) : e(CodeMirror)
}(function (e) {
    "use strict";
    e.defineMode("htmlembedded", function (t, n) {
        return e.multiplexingMode(e.getMode(t, "htmlmixed"), {
            open: n.open || n.scriptStartRegex || "<%",
            close: n.close || n.scriptEndRegex || "%>",
            mode: e.getMode(t, n.scriptingModeSpec)
        })
    }, "htmlmixed"), e.defineMIME("application/x-ejs", {
        name: "htmlembedded",
        scriptingModeSpec: "javascript"
    }), e.defineMIME("application/x-aspx", {
        name: "htmlembedded",
        scriptingModeSpec: "text/x-csharp"
    }), e.defineMIME("application/x-jsp", {
        name: "htmlembedded",
        scriptingModeSpec: "text/x-java"
    }), e.defineMIME("application/x-erb", {name: "htmlembedded", scriptingModeSpec: "ruby"})
}), function (e) {
    "use strict";
    "object" == typeof exports && "object" == typeof module ? e(require("codemirror")) : "function" == typeof define && define.amd ? define(["codemirror"], e) : e(window.CodeMirror)
}(function (e) {
    "use strict";
    e.defineMode("powershell", function () {
        function e(e, t) {
            for (var n = void 0 !== (t = t || {}).prefix ? t.prefix : "^", r = void 0 !== t.suffix ? t.suffix : "\\b", i = 0; i < e.length; i++) e[i] instanceof RegExp ? e[i] = e[i].source : e[i] = e[i].replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
            return new RegExp(n + "(" + e.join("|") + ")" + r, "i")
        }

        function t(e, t) {
            var i = t.returnStack[t.returnStack.length - 1];
            if (i && i.shouldReturnFrom(t)) return t.tokenize = i.tokenize, t.returnStack.pop(), t.tokenize(e, t);
            if (e.eatSpace()) return null;
            if (e.eat("(")) return t.bracketNesting += 1, "punctuation";
            if (e.eat(")")) return t.bracketNesting -= 1, "punctuation";
            for (var a in h) if (e.match(h[a])) return a;
            var o = e.next();
            if ("'" === o) return n(e, t);
            if ("$" === o) return c(e, t);
            if ('"' === o) return r(e, t);
            if ("<" === o && e.eat("#")) return t.tokenize = l, l(e, t);
            if ("#" === o) return e.skipToEnd(), "comment";
            if ("@" === o) {
                var s = e.eat(/["']/);
                if (s && e.eol()) return t.tokenize = d, t.startQuote = s[0], d(e, t);
                if (e.eol()) return "error";
                if (e.peek().match(/[({]/)) return "punctuation";
                if (e.peek().match(f)) return c(e, t)
            }
            return "error"
        }

        function n(e, n) {
            for (var r; null != (r = e.peek());) if (e.next(), "'" === r && !e.eat("'")) return n.tokenize = t, "string";
            return "error"
        }

        function r(e, n) {
            for (var r; null != (r = e.peek());) {
                if ("$" === r) return n.tokenize = i, "string";
                if (e.next(), "`" !== r) {
                    if ('"' === r && !e.eat('"')) return n.tokenize = t, "string"
                } else e.next()
            }
            return "error"
        }

        function i(e, t) {
            return s(e, t, r)
        }

        function a(e, t) {
            return t.tokenize = d, t.startQuote = '"', d(e, t)
        }

        function o(e, t) {
            return s(e, t, a)
        }

        function s(e, n, r) {
            if (e.match("$(")) {
                var i = n.bracketNesting;
                return n.returnStack.push({
                    shouldReturnFrom: function (e) {
                        return e.bracketNesting === i
                    }, tokenize: r
                }), n.tokenize = t, n.bracketNesting += 1, "punctuation"
            }
            return e.next(), n.returnStack.push({
                shouldReturnFrom: function () {
                    return !0
                }, tokenize: r
            }), n.tokenize = c, n.tokenize(e, n)
        }

        function l(e, n) {
            for (var r, i = !1; null != (r = e.next());) {
                if (i && ">" == r) {
                    n.tokenize = t;
                    break
                }
                i = "#" === r
            }
            return "comment"
        }

        function c(e, n) {
            var r = e.peek() || "";
            return e.eat("{") ? (n.tokenize = u, u(e, n)) : void 0 != r && r.match(f) ? (e.eatWhile(f), n.tokenize = t, "variable-2") : (n.tokenize = t, "error")
        }

        function u(e, n) {
            for (var r; null != (r = e.next());) if ("}" === r) {
                n.tokenize = t;
                break
            }
            return "variable-2"
        }

        function d(e, n) {
            var r = n.startQuote;
            if (e.sol() && e.match(new RegExp(r + "@"))) n.tokenize = t; else if ('"' === r) for (; !e.eol();) {
                var i = e.peek();
                if ("$" === i) return n.tokenize = o, "string";
                e.next(), "`" === i && e.next()
            } else e.skipToEnd();
            return "string"
        }

        var f = /[\w\-:]/, m = /[\[\]{},;`\.]|@[({]/, p = /^[A-Za-z\_][A-Za-z\-\_\d]*\b/, h = {
            keyword: e([/begin|break|catch|continue|data|default|do|dynamicparam/, /else|elseif|end|exit|filter|finally|for|foreach|from|function|if|in/, /param|process|return|switch|throw|trap|try|until|where|while/], {suffix: "(?=[^A-Za-z\\d\\-_]|$)"}),
            number: /^((0x[\da-f]+)|((\d+\.\d+|\d\.|\.\d+|\d+)(e[\+\-]?\d+)?))[ld]?([kmgtp]b)?/i,
            operator: e([e(["f", /b?not/, /[ic]?split/, "join", /is(not)?/, "as", /[ic]?(eq|ne|[gl][te])/, /[ic]?(not)?(like|match|contains)/, /[ic]?replace/, /b?(and|or|xor)/], {prefix: "-"}), /[+\-*\/%]=|\+\+|--|\.\.|[+\-*&^%:=!|\/]|<(?!#)|(?!#)>/], {suffix: ""}),
            builtin: e([/[A-Z]:|%|\?/i, e([/Add-(Computer|Content|History|Member|PSSnapin|Type)/, /Checkpoint-Computer/, /Clear-(Content|EventLog|History|Host|Item(Property)?|Variable)/, /Compare-Object/, /Complete-Transaction/, /Connect-PSSession/, /ConvertFrom-(Csv|Json|SecureString|StringData)/, /Convert-Path/, /ConvertTo-(Csv|Html|Json|SecureString|Xml)/, /Copy-Item(Property)?/, /Debug-Process/, /Disable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/, /Disconnect-PSSession/, /Enable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/, /(Enter|Exit)-PSSession/, /Export-(Alias|Clixml|Console|Counter|Csv|FormatData|ModuleMember|PSSession)/, /ForEach-Object/, /Format-(Custom|List|Table|Wide)/, new RegExp("Get-(Acl|Alias|AuthenticodeSignature|ChildItem|Command|ComputerRestorePoint|Content|ControlPanelItem|Counter|Credential|Culture|Date|Event|EventLog|EventSubscriber|ExecutionPolicy|FormatData|Help|History|Host|HotFix|Item|ItemProperty|Job|Location|Member|Module|PfxCertificate|Process|PSBreakpoint|PSCallStack|PSDrive|PSProvider|PSSession|PSSessionConfiguration|PSSnapin|Random|Service|TraceSource|Transaction|TypeData|UICulture|Unique|Variable|Verb|WinEvent|WmiObject)"), /Group-Object/, /Import-(Alias|Clixml|Counter|Csv|LocalizedData|Module|PSSession)/, /ImportSystemModules/, /Invoke-(Command|Expression|History|Item|RestMethod|WebRequest|WmiMethod)/, /Join-Path/, /Limit-EventLog/, /Measure-(Command|Object)/, /Move-Item(Property)?/, new RegExp("New-(Alias|Event|EventLog|Item(Property)?|Module|ModuleManifest|Object|PSDrive|PSSession|PSSessionConfigurationFile|PSSessionOption|PSTransportOption|Service|TimeSpan|Variable|WebServiceProxy|WinEvent)"), /Out-(Default|File|GridView|Host|Null|Printer|String)/, /Pause/, /(Pop|Push)-Location/, /Read-Host/, /Receive-(Job|PSSession)/, /Register-(EngineEvent|ObjectEvent|PSSessionConfiguration|WmiEvent)/, /Remove-(Computer|Event|EventLog|Item(Property)?|Job|Module|PSBreakpoint|PSDrive|PSSession|PSSnapin|TypeData|Variable|WmiObject)/, /Rename-(Computer|Item(Property)?)/, /Reset-ComputerMachinePassword/, /Resolve-Path/, /Restart-(Computer|Service)/, /Restore-Computer/, /Resume-(Job|Service)/, /Save-Help/, /Select-(Object|String|Xml)/, /Send-MailMessage/, new RegExp("Set-(Acl|Alias|AuthenticodeSignature|Content|Date|ExecutionPolicy|Item(Property)?|Location|PSBreakpoint|PSDebug|PSSessionConfiguration|Service|StrictMode|TraceSource|Variable|WmiInstance)"), /Show-(Command|ControlPanelItem|EventLog)/, /Sort-Object/, /Split-Path/, /Start-(Job|Process|Service|Sleep|Transaction|Transcript)/, /Stop-(Computer|Job|Process|Service|Transcript)/, /Suspend-(Job|Service)/, /TabExpansion2/, /Tee-Object/, /Test-(ComputerSecureChannel|Connection|ModuleManifest|Path|PSSessionConfigurationFile)/, /Trace-Command/, /Unblock-File/, /Undo-Transaction/, /Unregister-(Event|PSSessionConfiguration)/, /Update-(FormatData|Help|List|TypeData)/, /Use-Transaction/, /Wait-(Event|Job|Process)/, /Where-Object/, /Write-(Debug|Error|EventLog|Host|Output|Progress|Verbose|Warning)/, /cd|help|mkdir|more|oss|prompt/, /ac|asnp|cat|cd|chdir|clc|clear|clhy|cli|clp|cls|clv|cnsn|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|dnsn|ebp/, /echo|epal|epcsv|epsn|erase|etsn|exsn|fc|fl|foreach|ft|fw|gal|gbp|gc|gci|gcm|gcs|gdr|ghy|gi|gjb|gl|gm|gmo|gp|gps/, /group|gsn|gsnp|gsv|gu|gv|gwmi|h|history|icm|iex|ihy|ii|ipal|ipcsv|ipmo|ipsn|irm|ise|iwmi|iwr|kill|lp|ls|man|md/, /measure|mi|mount|move|mp|mv|nal|ndr|ni|nmo|npssc|nsn|nv|ogv|oh|popd|ps|pushd|pwd|r|rbp|rcjb|rcsn|rd|rdr|ren|ri/, /rjb|rm|rmdir|rmo|rni|rnp|rp|rsn|rsnp|rujb|rv|rvpa|rwmi|sajb|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls/, /sort|sp|spjb|spps|spsv|start|sujb|sv|swmi|tee|trcm|type|where|wjb|write/], {
                prefix: "",
                suffix: ""
            }), e([/[$?^_]|Args|ConfirmPreference|ConsoleFileName|DebugPreference|Error|ErrorActionPreference|ErrorView|ExecutionContext/, /FormatEnumerationLimit|Home|Host|Input|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount/, /MaximumHistoryCount|MaximumVariableCount|MyInvocation|NestedPromptLevel|OutputEncoding|Pid|Profile|ProgressPreference/, /PSBoundParameters|PSCommandPath|PSCulture|PSDefaultParameterValues|PSEmailServer|PSHome|PSScriptRoot|PSSessionApplicationName/, /PSSessionConfigurationName|PSSessionOption|PSUICulture|PSVersionTable|Pwd|ShellId|StackTrace|VerbosePreference/, /WarningPreference|WhatIfPreference/, /Event|EventArgs|EventSubscriber|Sender/, /Matches|Ofs|ForEach|LastExitCode|PSCmdlet|PSItem|PSSenderInfo|This/, /true|false|null/], {
                prefix: "\\$",
                suffix: ""
            })], {suffix: "(?=[^A-Za-z\\d\\-_]|$)"}),
            punctuation: m,
            identifier: p
        };
        return {
            startState: function () {
                return {returnStack: [], bracketNesting: 0, tokenize: t}
            }, token: function (e, t) {
                return t.tokenize(e, t)
            }, blockCommentStart: "<#", blockCommentEnd: "#>", lineComment: "#", fold: "brace"
        }
    }), e.defineMIME("application/x-powershell", "powershell")
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror"), require("../../addon/mode/simple")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror", "../../addon/mode/simple"], e) : e(CodeMirror)
}(function (e) {
    "use strict";
    var t = "(" + ["from", "maintainer", "run", "cmd", "expose", "env", "add", "copy", "entrypoint", "volume", "user", "workdir", "onbuild"].join("|") + ")",
        n = new RegExp(t + "\\s*$", "i"), r = new RegExp(t + "(\\s+)", "i");
    e.defineSimpleMode("dockerfile", {
        start: [{regex: /#.*$/, token: "comment"}, {
            regex: n,
            token: "variable-2"
        }, {regex: r, token: ["variable-2", null], next: "arguments"}, {regex: /./, token: null}],
        arguments: [{regex: /#.*$/, token: "error", next: "start"}, {regex: /[^#]+\\$/, token: null}, {
            regex: /[^#]+/,
            token: null,
            next: "start"
        }, {regex: /$/, token: null, next: "start"}, {token: null, next: "start"}],
        meta: {lineComment: "#"}
    }), e.defineMIME("text/x-dockerfile", "dockerfile")
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror"), require("../xml/xml"), require("../javascript/javascript")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror", "../xml/xml", "../javascript/javascript"], e) : e(CodeMirror)
}(function (e) {
    "use strict";

    function t(e, t, n, r) {
        this.state = e, this.mode = t, this.depth = n, this.prev = r
    }

    function n(r) {
        return new t(e.copyState(r.mode, r.state), r.mode, r.depth, r.prev && n(r.prev))
    }

    e.defineMode("jsx", function (r, i) {
        function a(e) {
            var t = e.tagName;
            e.tagName = null;
            var n = c.indent(e, "");
            return e.tagName = t, n
        }

        function o(e, t) {
            return t.context.mode == c ? s(e, t, t.context) : l(e, t, t.context)
        }

        function s(n, i, s) {
            if (2 == s.depth) return n.match(/^.*?\*\//) ? s.depth = 1 : n.skipToEnd(), "comment";
            if ("{" == n.peek()) {
                c.skipAttribute(s.state);
                var l = a(s.state), d = s.state.context;
                if (d && n.match(/^[^>]*>\s*$/, !1)) {
                    for (; d.prev && !d.startOfLine;) d = d.prev;
                    d.startOfLine ? l -= r.indentUnit : s.prev.state.lexical && (l = s.prev.state.lexical.indented)
                } else 1 == s.depth && (l += r.indentUnit);
                return i.context = new t(e.startState(u, l), u, 0, i.context), null
            }
            if (1 == s.depth) {
                if ("<" == n.peek()) return c.skipAttribute(s.state), i.context = new t(e.startState(c, a(s.state)), c, 0, i.context), null;
                if (n.match("//")) return n.skipToEnd(), "comment";
                if (n.match("/*")) return s.depth = 2, o(n, i)
            }
            var f, m = c.token(n, s.state), p = n.current();
            return /\btag\b/.test(m) ? />$/.test(p) ? s.state.context ? s.depth = 0 : i.context = i.context.prev : /^</.test(p) && (s.depth = 1) : !m && (f = p.indexOf("{")) > -1 && n.backUp(p.length - f), m
        }

        function l(n, r, i) {
            if ("<" == n.peek() && u.expressionAllowed(n, i.state)) return u.skipExpression(i.state), r.context = new t(e.startState(c, u.indent(i.state, "")), c, 0, r.context), null;
            var a = u.token(n, i.state);
            if (!a && null != i.depth) {
                var o = n.current();
                "{" == o ? i.depth++ : "}" == o && 0 == --i.depth && (r.context = r.context.prev)
            }
            return a
        }

        var c = e.getMode(r, {name: "xml", allowMissing: !0, multilineTagIndentPastTag: !1}),
            u = e.getMode(r, i && i.base || "javascript");
        return {
            startState: function () {
                return {context: new t(e.startState(u), u)}
            }, copyState: function (e) {
                return {context: n(e.context)}
            }, token: o, indent: function (e, t, n) {
                return e.context.mode.indent(e.context.state, t, n)
            }, innerMode: function (e) {
                return e.context
            }
        }
    }, "xml", "javascript"), e.defineMIME("text/jsx", "jsx"), e.defineMIME("text/typescript-jsx", {
        name: "jsx",
        base: {name: "javascript", typescript: !0}
    })
}), function (e) {
    "use strict";
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror"), require("../../addon/mode/overlay"), require("../xml/xml"), require("../javascript/javascript"), require("../coffeescript/coffeescript"), require("../css/css"), require("../sass/sass"), require("../stylus/stylus"), require("../pug/pug"), require("../handlebars/handlebars")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror", "../../addon/mode/overlay", "../xml/xml", "../javascript/javascript", "../coffeescript/coffeescript", "../css/css", "../sass/sass", "../stylus/stylus", "../pug/pug", "../handlebars/handlebars"], e) : e(CodeMirror)
}(function (e) {
    var t = {
        script: [["lang", /coffee(script)?/, "coffeescript"], ["type", /^(?:text|application)\/(?:x-)?coffee(?:script)?$/, "coffeescript"]],
        style: [["lang", /^stylus$/i, "stylus"], ["lang", /^sass$/i, "sass"], ["type", /^(text\/)?(x-)?styl(us)?$/i, "stylus"], ["type", /^text\/sass/i, "sass"]],
        template: [["lang", /^vue-template$/i, "vue"], ["lang", /^pug$/i, "pug"], ["lang", /^handlebars$/i, "handlebars"], ["type", /^(text\/)?(x-)?pug$/i, "pug"], ["type", /^text\/x-handlebars-template$/i, "handlebars"], [null, null, "vue-template"]]
    };
    e.defineMode("vue-template", function (t, n) {
        var r = {
            token: function (e) {
                if (e.match(/^\{\{.*?\}\}/)) return "meta mustache";
                for (; e.next() && !e.match("{{", !1);) ;
                return null
            }
        };
        return e.overlayMode(e.getMode(t, n.backdrop || "text/html"), r)
    }), e.defineMode("vue", function (n) {
        return e.getMode(n, {name: "htmlmixed", tags: t})
    }, "htmlmixed", "xml", "javascript", "coffeescript", "css", "sass", "stylus", "pug", "handlebars"), e.defineMIME("script/x-vue", "vue"), e.defineMIME("text/x-vue", "vue")
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror"), require("../../addon/mode/simple")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror", "../../addon/mode/simple"], e) : e(CodeMirror)
}(function (e) {
    "use strict";
    e.defineSimpleMode("nsis", {
        start: [{
            regex: /(?:[+-]?)(?:0x[\d,a-f]+)|(?:0o[0-7]+)|(?:0b[0,1]+)|(?:\d+.?\d*)/,
            token: "number"
        }, {regex: /"(?:[^\\"]|\\.)*"?/, token: "string"}, {
            regex: /'(?:[^\\']|\\.)*'?/,
            token: "string"
        }, {
            regex: /`(?:[^\\`]|\\.)*`?/,
            token: "string"
        }, {
            regex: /^\s*(?:\!(include|addincludedir|addplugindir|appendfile|cd|delfile|echo|error|execute|packhdr|finalize|getdllversion|system|tempfile|warning|verbose|define|undef|insertmacro|makensis|searchparse|searchreplace))\b/,
            token: "keyword"
        }, {
            regex: /^\s*(?:\!(if(?:n?def)?|ifmacron?def|macro))\b/,
            token: "keyword",
            indent: !0
        }, {
            regex: /^\s*(?:\!(else|endif|macroend))\b/,
            token: "keyword",
            dedent: !0
        }, {
            regex: /^\s*(?:Abort|AddBrandingImage|AddSize|AllowRootDirInstall|AllowSkipFiles|AutoCloseWindow|BGFont|BGGradient|BrandingText|BringToFront|Call|CallInstDLL|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|CRCCheck|CreateDirectory|CreateFont|CreateShortCut|Delete|DeleteINISec|DeleteINIStr|DeleteRegKey|DeleteRegValue|DetailPrint|DetailsButtonText|DirText|DirVar|DirVerify|EnableWindow|EnumRegKey|EnumRegValue|Exch|Exec|ExecShell|ExecWait|ExpandEnvStrings|File|FileBufSize|FileClose|FileErrorText|FileOpen|FileRead|FileReadByte|FileReadUTF16LE|FileReadWord|FileWriteUTF16LE|FileSeek|FileWrite|FileWriteByte|FileWriteWord|FindClose|FindFirst|FindNext|FindWindow|FlushINI|GetCurInstType|GetCurrentAddress|GetDlgItem|GetDLLVersion|GetDLLVersionLocal|GetErrorLevel|GetFileTime|GetFileTimeLocal|GetFullPathName|GetFunctionAddress|GetInstDirError|GetLabelAddress|GetTempFileName|Goto|HideWindow|Icon|IfAbort|IfErrors|IfFileExists|IfRebootFlag|IfSilent|InitPluginsDir|InstallButtonText|InstallColors|InstallDir|InstallDirRegKey|InstProgressFlags|InstType|InstTypeGetText|InstTypeSetText|IntCmp|IntCmpU|IntFmt|IntOp|IsWindow|LangString|LicenseBkColor|LicenseData|LicenseForceSelection|LicenseLangString|LicenseText|LoadLanguageFile|LockWindow|LogSet|LogText|ManifestDPIAware|ManifestSupportedOS|MessageBox|MiscButtonText|Name|Nop|OutFile|Page|PageCallbacks|Pop|Push|Quit|ReadEnvStr|ReadINIStr|ReadRegDWORD|ReadRegStr|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|RMDir|SearchPath|SectionGetFlags|SectionGetInstTypes|SectionGetSize|SectionGetText|SectionIn|SectionSetFlags|SectionSetInstTypes|SectionSetSize|SectionSetText|SendMessage|SetAutoClose|SetBrandingImage|SetCompress|SetCompressor|SetCompressorDictSize|SetCtlColors|SetCurInstType|SetDatablockOptimize|SetDateSave|SetDetailsPrint|SetDetailsView|SetErrorLevel|SetErrors|SetFileAttributes|SetFont|SetOutPath|SetOverwrite|SetRebootFlag|SetRegView|SetShellVarContext|SetSilent|ShowInstDetails|ShowUninstDetails|ShowWindow|SilentInstall|SilentUnInstall|Sleep|SpaceTexts|StrCmp|StrCmpS|StrCpy|StrLen|SubCaption|Unicode|UninstallButtonText|UninstallCaption|UninstallIcon|UninstallSubCaption|UninstallText|UninstPage|UnRegDLL|Var|VIAddVersionKey|VIFileVersion|VIProductVersion|WindowIcon|WriteINIStr|WriteRegBin|WriteRegDWORD|WriteRegExpandStr|WriteRegStr|WriteUninstaller|XPStyle)\b/,
            token: "keyword"
        }, {
            regex: /^\s*(?:Function|PageEx|Section(?:Group)?)\b/,
            token: "keyword",
            indent: !0
        }, {
            regex: /^\s*(?:(Function|PageEx|Section(?:Group)?)End)\b/,
            token: "keyword",
            dedent: !0
        }, {
            regex: /\b(?:ARCHIVE|FILE_ATTRIBUTE_ARCHIVE|FILE_ATTRIBUTE_HIDDEN|FILE_ATTRIBUTE_NORMAL|FILE_ATTRIBUTE_OFFLINE|FILE_ATTRIBUTE_READONLY|FILE_ATTRIBUTE_SYSTEM|FILE_ATTRIBUTE_TEMPORARY|HIDDEN|HKCC|HKCR|HKCU|HKDD|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_DYN_DATA|HKEY_LOCAL_MACHINE|HKEY_PERFORMANCE_DATA|HKEY_USERS|HKLM|HKPD|HKU|IDABORT|IDCANCEL|IDD_DIR|IDD_INST|IDD_INSTFILES|IDD_LICENSE|IDD_SELCOM|IDD_UNINST|IDD_VERIFY|IDIGNORE|IDNO|IDOK|IDRETRY|IDYES|MB_ABORTRETRYIGNORE|MB_DEFBUTTON1|MB_DEFBUTTON2|MB_DEFBUTTON3|MB_DEFBUTTON4|MB_ICONEXCLAMATION|MB_ICONINFORMATION|MB_ICONQUESTION|MB_ICONSTOP|MB_OK|MB_OKCANCEL|MB_RETRYCANCEL|MB_RIGHT|MB_RTLREADING|MB_SETFOREGROUND|MB_TOPMOST|MB_USERICON|MB_YESNO|MB_YESNOCANCEL|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SW_HIDE|SW_SHOWDEFAULT|SW_SHOWMAXIMIZED|SW_SHOWMINIMIZED|SW_SHOWNORMAL|SYSTEM|TEMPORARY)\b/,
            token: "atom"
        }, {
            regex: /\b(?:admin|all|auto|both|bottom|bzip2|components|current|custom|directory|force|hide|highest|ifdiff|ifnewer|instfiles|lastused|leave|left|license|listonly|lzma|nevershow|none|normal|notset|right|show|silent|silentlog|textonly|top|try|un\.components|un\.custom|un\.directory|un\.instfiles|un\.license|uninstConfirm|user|Win10|Win7|Win8|WinVista|zlib)\b/,
            token: "builtin"
        }, {
            regex: /\$\{(?:And(?:If(?:Not)?|Unless)|Break|Case(?:Else)?|Continue|Default|Do(?:Until|While)?|Else(?:If(?:Not)?|Unless)?|End(?:If|Select|Switch)|Exit(?:Do|For|While)|For(?:Each)?|If(?:Cmd|Not(?:Then)?|Then)?|Loop(?:Until|While)?|Or(?:If(?:Not)?|Unless)|Select|Switch|Unless|While)\}/,
            token: "variable-2",
            indent: !0
        }, {
            regex: /\$\{(?:BannerTrimPath|DirState|DriveSpace|Get(BaseName|Drives|ExeName|ExePath|FileAttributes|FileExt|FileName|FileVersion|Options|OptionsS|Parameters|Parent|Root|Size|Time)|Locate|RefreshShellIcons)\}/,
            token: "variable-2",
            dedent: !0
        }, {
            regex: /\$\{(?:Memento(?:Section(?:Done|End|Restore|Save)?|UnselectedSection))\}/,
            token: "variable-2",
            dedent: !0
        }, {
            regex: /\$\{(?:Config(?:Read|ReadS|Write|WriteS)|File(?:Join|ReadFromEnd|Recode)|Line(?:Find|Read|Sum)|Text(?:Compare|CompareS)|TrimNewLines)\}/,
            token: "variable-2",
            dedent: !0
        }, {
            regex: /\$\{(?:(?:At(?:Least|Most)|Is)(?:ServicePack|Win(?:7|8|10|95|98|200(?:0|3|8(?:R2)?)|ME|NT4|Vista|XP))|Is(?:NT|Server))\}/,
            token: "variable",
            dedent: !0
        }, {
            regex: /\$\{(?:StrFilterS?|Version(?:Compare|Convert)|Word(?:AddS?|Find(?:(?:2|3)X)?S?|InsertS?|ReplaceS?))\}/,
            token: "variable-2",
            dedent: !0
        }, {
            regex: /\$\{(?:RunningX64)\}/,
            token: "variable",
            dedent: !0
        }, {regex: /\$\{(?:Disable|Enable)X64FSRedirection\}/, token: "variable-2", dedent: !0}, {
            regex: /(#|;).*/,
            token: "comment"
        }, {regex: /\/\*/, token: "comment", next: "comment"}, {
            regex: /[-+\/*=<>!]+/,
            token: "operator"
        }, {regex: /\$\w+/, token: "variable"}, {
            regex: /\${[\w\.:-]+}/,
            token: "variable-2"
        }, {regex: /\$\([\w\.:-]+\)/, token: "variable-3"}],
        comment: [{regex: /.*?\*\//, token: "comment", next: "start"}, {regex: /.*/, token: "comment"}],
        meta: {
            electricInput: /^\s*((Function|PageEx|Section|Section(Group)?)End|(\!(endif|macroend))|\$\{(End(If|Unless|While)|Loop(Until)|Next)\})$/,
            blockCommentStart: "/*",
            blockCommentEnd: "*/",
            lineComment: ["#", ";"]
        }
    }), e.defineMIME("text/x-nsis", "nsis")
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";
    e.defineMode("mathematica", function (e, t) {
        function n(e, t) {
            var n;
            return '"' === (n = e.next()) ? (t.tokenize = r, t.tokenize(e, t)) : "(" === n && e.eat("*") ? (t.commentLevel++ , t.tokenize = i, t.tokenize(e, t)) : (e.backUp(1), e.match(s, !0, !1) ? "number" : e.match(l, !0, !1) ? "number" : e.match(/(?:In|Out)\[[0-9]*\]/, !0, !1) ? "atom" : e.match(/([a-zA-Z\$]+(?:`?[a-zA-Z0-9\$])*::usage)/, !0, !1) ? "meta" : e.match(/([a-zA-Z\$]+(?:`?[a-zA-Z0-9\$])*::[a-zA-Z\$][a-zA-Z0-9\$]*):?/, !0, !1) ? "string-2" : e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*\s*:)(?:(?:[a-zA-Z\$][a-zA-Z0-9\$]*)|(?:[^:=>~@\^\&\*\)\[\]'\?,\|])).*/, !0, !1) ? "variable-2" : e.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+[a-zA-Z\$][a-zA-Z0-9\$]*/, !0, !1) ? "variable-2" : e.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+/, !0, !1) ? "variable-2" : e.match(/_+[a-zA-Z\$][a-zA-Z0-9\$]*/, !0, !1) ? "variable-2" : e.match(/\\\[[a-zA-Z\$][a-zA-Z0-9\$]*\]/, !0, !1) ? "variable-3" : e.match(/(?:\[|\]|{|}|\(|\))/, !0, !1) ? "bracket" : e.match(/(?:#[a-zA-Z\$][a-zA-Z0-9\$]*|#+[0-9]?)/, !0, !1) ? "variable-2" : e.match(c, !0, !1) ? "keyword" : e.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%)/, !0, !1) ? "operator" : (e.next(), "error"))
        }

        function r(e, t) {
            for (var r, i = !1, a = !1; null != (r = e.next());) {
                if ('"' === r && !a) {
                    i = !0;
                    break
                }
                a = !a && "\\" === r
            }
            return i && !a && (t.tokenize = n), "string"
        }

        function i(e, t) {
            for (var r, i; t.commentLevel > 0 && null != (i = e.next());) "(" === r && "*" === i && t.commentLevel++ , "*" === r && ")" === i && t.commentLevel-- , r = i;
            return t.commentLevel <= 0 && (t.tokenize = n), "comment"
        }

        var a = "(?:\\.\\d+|\\d+\\.\\d*|\\d+)", o = "(?:`(?:`?" + a + ")?)",
            s = new RegExp("(?:(?:\\d+)(?:\\^\\^(?:\\.\\w+|\\w+\\.\\w*|\\w+)" + o + "?(?:\\*\\^[+-]?\\d+)?))"),
            l = new RegExp("(?:" + a + o + "?(?:\\*\\^[+-]?\\d+)?)"),
            c = new RegExp("(?:`?)(?:[a-zA-Z\\$][a-zA-Z0-9\\$]*)(?:`(?:[a-zA-Z\\$][a-zA-Z0-9\\$]*))*(?:`?)");
        return {
            startState: function () {
                return {tokenize: n, commentLevel: 0}
            }, token: function (e, t) {
                return e.eatSpace() ? null : t.tokenize(e, t)
            }, blockCommentStart: "(*", blockCommentEnd: "*)"
        }
    }), e.defineMIME("text/x-mathematica", {name: "mathematica"})
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";
    e.defineMode("tiki", function (e) {
        function t(e, t, n) {
            return function (i, a) {
                for (; !i.eol();) {
                    if (i.match(t)) {
                        a.tokenize = r;
                        break
                    }
                    i.next()
                }
                return n && (a.tokenize = n), e
            }
        }

        function n(e) {
            return function (t, n) {
                for (; !t.eol();) t.next();
                return n.tokenize = r, e
            }
        }

        function r(e, a) {
            function o(t) {
                return a.tokenize = t, t(e, a)
            }

            var s = e.sol(), l = e.next();
            switch (l) {
                case "{":
                    return e.eat("/"), e.eatSpace(), e.eatWhile(/[^\s\u00a0=\"\'\/?(}]/), a.tokenize = i, "tag";
                case "_":
                    if (e.eat("_")) return o(t("strong", "__", r));
                    break;
                case "'":
                    if (e.eat("'")) return o(t("em", "''", r));
                    break;
                case "(":
                    if (e.eat("(")) return o(t("variable-2", "))", r));
                    break;
                case "[":
                    return o(t("variable-3", "]", r));
                case "|":
                    if (e.eat("|")) return o(t("comment", "||"));
                    break;
                case "-":
                    if (e.eat("=")) return o(t("header string", "=-", r));
                    if (e.eat("-")) return o(t("error tw-deleted", "--", r));
                    break;
                case "=":
                    if (e.match("==")) return o(t("tw-underline", "===", r));
                    break;
                case ":":
                    if (e.eat(":")) return o(t("comment", "::"));
                    break;
                case "^":
                    return o(t("tw-box", "^"));
                case "~":
                    if (e.match("np~")) return o(t("meta", "~/np~"))
            }
            if (s) switch (l) {
                case "!":
                    return o(e.match("!!!!!") ? n("header string") : e.match("!!!!") ? n("header string") : e.match("!!!") ? n("header string") : e.match("!!") ? n("header string") : n("header string"));
                case "*":
                case "#":
                case "+":
                    return o(n("tw-listitem bracket"))
            }
            return null
        }

        function i(e, t) {
            var n = e.next(), i = e.peek();
            return "}" == n ? (t.tokenize = r, "tag") : "(" == n || ")" == n ? "bracket" : "=" == n ? (_ = "equals", ">" == i && (e.next(), i = e.peek()), /[\'\"]/.test(i) || (t.tokenize = o()), "operator") : /[\'\"]/.test(n) ? (t.tokenize = a(n), t.tokenize(e, t)) : (e.eatWhile(/[^\s\u00a0=\"\'\/?]/), "keyword")
        }

        function a(e) {
            return function (t, n) {
                for (; !t.eol();) if (t.next() == e) {
                    n.tokenize = i;
                    break
                }
                return "string"
            }
        }

        function o() {
            return function (e, t) {
                for (; !e.eol();) {
                    var n = e.next(), r = e.peek();
                    if (" " == n || "," == n || /[ )}]/.test(r)) {
                        t.tokenize = i;
                        break
                    }
                }
                return "string"
            }
        }

        function s() {
            for (var e = arguments.length - 1; e >= 0; e--) y.cc.push(arguments[e])
        }

        function l() {
            return s.apply(null, arguments), !0
        }

        function c(e, t) {
            var n = y.context && y.context.noIndent;
            y.context = {prev: y.context, pluginName: e, indent: y.indented, startOfLine: t, noIndent: n}
        }

        function u() {
            y.context && (y.context = y.context.prev)
        }

        function d(e) {
            if ("openPlugin" == e) return y.pluginName = b, l(p, f(y.startOfLine));
            if ("closePlugin" == e) {
                var t = !1;
                return y.context ? (t = y.context.pluginName != b, u()) : t = !0, t && (k = "error"), l(m(t))
            }
            return "string" == e ? (y.context && "!cdata" == y.context.name || c("!cdata"), y.tokenize == r && u(), l()) : l()
        }

        function f(e) {
            return function (t) {
                return "selfclosePlugin" == t || "endPlugin" == t ? l() : "endPlugin" == t ? (c(y.pluginName, e), l()) : l()
            }
        }

        function m(e) {
            return function (t) {
                return e && (k = "error"), "endPlugin" == t ? l() : s()
            }
        }

        function p(e) {
            return "keyword" == e ? (k = "attribute", l(p)) : "equals" == e ? l(h, p) : s()
        }

        function h(e) {
            return "keyword" == e ? (k = "string", l()) : "string" == e ? l(g) : s()
        }

        function g(e) {
            return "string" == e ? l(g) : s()
        }

        var b, _, y, k, v = e.indentUnit;
        return {
            startState: function () {
                return {tokenize: r, cc: [], indented: 0, startOfLine: !0, pluginName: null, context: null}
            }, token: function (e, t) {
                if (e.sol() && (t.startOfLine = !0, t.indented = e.indentation()), e.eatSpace()) return null;
                k = _ = b = null;
                var n = t.tokenize(e, t);
                if ((n || _) && "comment" != n) for (y = t; ;) if ((t.cc.pop() || d)(_ || n)) break;
                return t.startOfLine = !1, k || n
            }, indent: function (e, t) {
                var n = e.context;
                if (n && n.noIndent) return 0;
                for (n && /^{\//.test(t) && (n = n.prev); n && !n.startOfLine;) n = n.prev;
                return n ? n.indent + v : 0
            }, electricChars: "/"
        }
    }), e.defineMIME("text/tiki", "tiki")
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";
    e.defineMode("properties", function () {
        return {
            token: function (e, t) {
                var n = e.sol() || t.afterSection, r = e.eol();
                if (t.afterSection = !1, n && (t.nextMultiline ? (t.inMultiline = !0, t.nextMultiline = !1) : t.position = "def"), r && !t.nextMultiline && (t.inMultiline = !1, t.position = "def"), n) for (; e.eatSpace();) ;
                var i = e.next();
                return !n || "#" !== i && "!" !== i && ";" !== i ? n && "[" === i ? (t.afterSection = !0, e.skipTo("]"), e.eat("]"), "header") : "=" === i || ":" === i ? (t.position = "quote", null) : ("\\" === i && "quote" === t.position && e.eol() && (t.nextMultiline = !0), t.position) : (t.position = "comment", e.skipToEnd(), "comment")
            }, startState: function () {
                return {position: "def", nextMultiline: !1, inMultiline: !1, afterSection: !1}
            }
        }
    }), e.defineMIME("text/x-properties", "properties"), e.defineMIME("text/x-ini", "properties")
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";
    e.defineMode("livescript", function () {
        var e = function (e, t) {
            var n = t.next || "start";
            if (n) {
                t.next = t.next;
                var r = a[n];
                if (r.splice) {
                    for (var i = 0; i < r.length; ++i) {
                        var o = r[i];
                        if (o.regex && e.match(o.regex)) return t.next = o.next || t.next, o.token
                    }
                    return e.next(), "error"
                }
                if (e.match(o = a[n])) return o.regex && e.match(o.regex) ? (t.next = o.next, o.token) : (e.next(), "error")
            }
            return e.next(), "error"
        };
        return {
            startState: function () {
                return {next: "start", lastToken: {style: null, indent: 0, content: ""}}
            }, token: function (t, n) {
                for (; t.pos == t.start;) var r = e(t, n);
                return n.lastToken = {style: r, indent: t.indentation(), content: t.current()}, r.replace(/\./g, " ")
            }, indent: function (e) {
                var t = e.lastToken.indent;
                return e.lastToken.content.match(n) && (t += 2), t
            }
        }
    });
    var t = "(?![\\d\\s])[$\\w\\xAA-\\uFFDC](?:(?!\\s)[$\\w\\xAA-\\uFFDC]|-[A-Za-z])*",
        n = RegExp("(?:[({[=:]|[-~]>|\\b(?:e(?:lse|xport)|d(?:o|efault)|t(?:ry|hen)|finally|import(?:\\s*all)?|const|var|let|new|catch(?:\\s*" + t + ")?))\\s*$"),
        r = "(?![$\\w]|-[A-Za-z]|\\s*:(?![:=]))", i = {token: "string", regex: ".+"}, a = {
            start: [{token: "comment.doc", regex: "/\\*", next: "comment"}, {
                token: "comment",
                regex: "#.*"
            }, {
                token: "keyword",
                regex: "(?:t(?:h(?:is|row|en)|ry|ypeof!?)|c(?:on(?:tinue|st)|a(?:se|tch)|lass)|i(?:n(?:stanceof)?|mp(?:ort(?:\\s+all)?|lements)|[fs])|d(?:e(?:fault|lete|bugger)|o)|f(?:or(?:\\s+own)?|inally|unction)|s(?:uper|witch)|e(?:lse|x(?:tends|port)|val)|a(?:nd|rguments)|n(?:ew|ot)|un(?:less|til)|w(?:hile|ith)|o[fr]|return|break|let|var|loop)" + r
            }, {
                token: "constant.language",
                regex: "(?:true|false|yes|no|on|off|null|void|undefined)" + r
            }, {
                token: "invalid.illegal",
                regex: "(?:p(?:ackage|r(?:ivate|otected)|ublic)|i(?:mplements|nterface)|enum|static|yield)" + r
            }, {
                token: "language.support.class",
                regex: "(?:R(?:e(?:gExp|ferenceError)|angeError)|S(?:tring|yntaxError)|E(?:rror|valError)|Array|Boolean|Date|Function|Number|Object|TypeError|URIError)" + r
            }, {
                token: "language.support.function",
                regex: "(?:is(?:NaN|Finite)|parse(?:Int|Float)|Math|JSON|(?:en|de)codeURI(?:Component)?)" + r
            }, {
                token: "variable.language",
                regex: "(?:t(?:hat|il|o)|f(?:rom|allthrough)|it|by|e)" + r
            }, {token: "identifier", regex: t + "\\s*:(?![:=])"}, {token: "variable", regex: t}, {
                token: "keyword.operator",
                regex: "(?:\\.{3}|\\s+\\?)"
            }, {token: "keyword.variable", regex: "(?:@+|::|\\.\\.)", next: "key"}, {
                token: "keyword.operator",
                regex: "\\.\\s*",
                next: "key"
            }, {token: "string", regex: "\\\\\\S[^\\s,;)}\\]]*"}, {
                token: "string.doc",
                regex: "'''",
                next: "qdoc"
            }, {token: "string.doc", regex: '"""', next: "qqdoc"}, {
                token: "string",
                regex: "'",
                next: "qstring"
            }, {token: "string", regex: '"', next: "qqstring"}, {token: "string", regex: "`", next: "js"}, {
                token: "string",
                regex: "<\\[",
                next: "words"
            }, {token: "string.regex", regex: "//", next: "heregex"}, {
                token: "string.regex",
                regex: "\\/(?:[^[\\/\\n\\\\]*(?:(?:\\\\.|\\[[^\\]\\n\\\\]*(?:\\\\.[^\\]\\n\\\\]*)*\\])[^[\\/\\n\\\\]*)*)\\/[gimy$]{0,4}",
                next: "key"
            }, {
                token: "constant.numeric",
                regex: "(?:0x[\\da-fA-F][\\da-fA-F_]*|(?:[2-9]|[12]\\d|3[0-6])r[\\da-zA-Z][\\da-zA-Z_]*|(?:\\d[\\d_]*(?:\\.\\d[\\d_]*)?|\\.\\d[\\d_]*)(?:e[+-]?\\d[\\d_]*)?[\\w$]*)"
            }, {token: "lparen", regex: "[({[]"}, {
                token: "rparen",
                regex: "[)}\\]]",
                next: "key"
            }, {token: "keyword.operator", regex: "\\S+"}, {token: "text", regex: "\\s+"}],
            heregex: [{token: "string.regex", regex: ".*?//[gimy$?]{0,4}", next: "start"}, {
                token: "string.regex",
                regex: "\\s*#{"
            }, {token: "comment.regex", regex: "\\s+(?:#.*)?"}, {token: "string.regex", regex: "\\S+"}],
            key: [{token: "keyword.operator", regex: "[.?@!]+"}, {
                token: "identifier",
                regex: t,
                next: "start"
            }, {token: "text", regex: "", next: "start"}],
            comment: [{token: "comment.doc", regex: ".*?\\*/", next: "start"}, {token: "comment.doc", regex: ".+"}],
            qdoc: [{token: "string", regex: ".*?'''", next: "key"}, i],
            qqdoc: [{token: "string", regex: '.*?"""', next: "key"}, i],
            qstring: [{token: "string", regex: "[^\\\\']*(?:\\\\.[^\\\\']*)*'", next: "key"}, i],
            qqstring: [{token: "string", regex: '[^\\\\"]*(?:\\\\.[^\\\\"]*)*"', next: "key"}, i],
            js: [{token: "string", regex: "[^\\\\`]*(?:\\\\.[^\\\\`]*)*`", next: "key"}, i],
            words: [{token: "string", regex: ".*?\\]>", next: "key"}, i]
        };
    for (var o in a) {
        var s = a[o];
        if (s.splice) for (var l = 0, c = s.length; l < c; ++l) {
            var u = s[l];
            "string" == typeof u.regex && (a[o][l].regex = new RegExp("^" + u.regex))
        } else "string" == typeof u.regex && (a[o].regex = new RegExp("^" + s.regex))
    }
    e.defineMIME("text/x-livescript", "livescript")
}), CodeMirror.defineMode("assembly", function (e, t) {
    "use strict";

    function n(e, t) {
        for (var n, r = !1; null != (n = e.next());) {
            if (n === t && !r) return !1;
            r = !r && "\\" === n
        }
        return r
    }

    function r(e, t) {
        for (var n, r = !1; null != (n = e.next());) {
            if ("/" === n && r) {
                t.tokenize = null;
                break
            }
            r = "*" === n
        }
        return "comment"
    }

    var i = [], a = {
        ".abort": "builtin",
        ".align": "builtin",
        ".altmacro": "builtin",
        ".ascii": "builtin",
        ".asciz": "builtin",
        ".balign": "builtin",
        ".balignw": "builtin",
        ".balignl": "builtin",
        ".bundle_align_mode": "builtin",
        ".bundle_lock": "builtin",
        ".bundle_unlock": "builtin",
        ".byte": "builtin",
        ".cfi_startproc": "builtin",
        ".comm": "builtin",
        ".data": "builtin",
        ".def": "builtin",
        ".desc": "builtin",
        ".dim": "builtin",
        ".double": "builtin",
        ".eject": "builtin",
        ".else": "builtin",
        ".elseif": "builtin",
        ".end": "builtin",
        ".endef": "builtin",
        ".endfunc": "builtin",
        ".endif": "builtin",
        ".equ": "builtin",
        ".equiv": "builtin",
        ".eqv": "builtin",
        ".err": "builtin",
        ".error": "builtin",
        ".exitm": "builtin",
        ".extern": "builtin",
        ".fail": "builtin",
        ".file": "builtin",
        ".fill": "builtin",
        ".float": "builtin",
        ".func": "builtin",
        ".global": "builtin",
        ".gnu_attribute": "builtin",
        ".hidden": "builtin",
        ".hword": "builtin",
        ".ident": "builtin",
        ".if": "builtin",
        ".incbin": "builtin",
        ".include": "builtin",
        ".int": "builtin",
        ".internal": "builtin",
        ".irp": "builtin",
        ".irpc": "builtin",
        ".lcomm": "builtin",
        ".lflags": "builtin",
        ".line": "builtin",
        ".linkonce": "builtin",
        ".list": "builtin",
        ".ln": "builtin",
        ".loc": "builtin",
        ".loc_mark_labels": "builtin",
        ".local": "builtin",
        ".long": "builtin",
        ".macro": "builtin",
        ".mri": "builtin",
        ".noaltmacro": "builtin",
        ".nolist": "builtin",
        ".octa": "builtin",
        ".offset": "builtin",
        ".org": "builtin",
        ".p2align": "builtin",
        ".popsection": "builtin",
        ".previous": "builtin",
        ".print": "builtin",
        ".protected": "builtin",
        ".psize": "builtin",
        ".purgem": "builtin",
        ".pushsection": "builtin",
        ".quad": "builtin",
        ".reloc": "builtin",
        ".rept": "builtin",
        ".sbttl": "builtin",
        ".scl": "builtin",
        ".section": "builtin",
        ".set": "builtin",
        ".short": "builtin",
        ".single": "builtin",
        ".size": "builtin",
        ".skip": "builtin",
        ".sleb128": "builtin",
        ".space": "builtin",
        ".stab": "builtin",
        ".string": "builtin",
        ".struct": "builtin",
        ".subsection": "builtin",
        ".symver": "builtin",
        ".tag": "builtin",
        ".text": "builtin",
        ".title": "builtin",
        ".type": "builtin",
        ".uleb128": "builtin",
        ".val": "builtin",
        ".version": "builtin",
        ".vtable_entry": "builtin",
        ".vtable_inherit": "builtin",
        ".warning": "builtin",
        ".weak": "builtin",
        ".weakref": "builtin",
        ".word": "builtin"
    }, o = {};
    a.syntax = "builtin", o.r0 = "variable", o.r1 = "variable", o.r2 = "variable", o.r3 = "variable", o.r4 = "variable", o.r5 = "variable", o.r6 = "variable", o.r7 = "variable", o.r8 = "variable", o.r9 = "variable", o.r10 = "variable", o.r11 = "variable", o.r12 = "variable", o.sp = "variable-2", o.lr = "variable-2", o.pc = "variable-2", o.r13 = o.sp, o.r14 = o.lr, o.r15 = o.pc, i.push(function (e, t) {
        if ("#" === e) return t.eatWhile(/\w/), "number"
    }), o.ax = "variable", o.eax = "variable-2", o.rax = "variable-3", o.bx = "variable", o.ebx = "variable-2", o.rbx = "variable-3", o.cx = "variable", o.ecx = "variable-2", o.rcx = "variable-3", o.dx = "variable", o.edx = "variable-2", o.rdx = "variable-3", o.si = "variable", o.esi = "variable-2", o.rsi = "variable-3", o.di = "variable", o.edi = "variable-2", o.rdi = "variable-3", o.sp = "variable", o.esp = "variable-2", o.rsp = "variable-3", o.bp = "variable", o.ebp = "variable-2", o.rbp = "variable-3", o.ip = "variable", o.eip = "variable-2", o.rip = "variable-3", o.cs = "keyword", o.ds = "keyword", o.ss = "keyword", o.es = "keyword", o.fs = "keyword", o.gs = "keyword";
    var s = !1;
    return {
        startState: function () {
            return {tokenize: null}
        }, token: function (e, t) {
            if (t.tokenize) return t.tokenize(e, t);
            if (0 === e.pos && e.match(/\s*\w+(\s+|$)/, !1) && (s = !0), e.eatSpace()) return null;
            var l, c, u = e.next();
            if ("_" === u) return e.eatWhile(/\w/), s = !1, "builtin";
            if (/\w/.test(u)) return e.eatWhile(/\w/), e.eat(":") ? "tag" : (c = e.current().toLowerCase(), !(l = o[c]) && s ? "keyword" : (s = !1, l || null));
            if (s = !1, "/" === u && e.eat("*")) return t.tokenize = r, r(e, t);
            if ("#" === u || "@" === u || ";" === u) return e.skipToEnd(), "comment";
            if ('"' === u) return n(e, '"'), "string";
            if ("." === u) return e.eatWhile(/\w/), c = e.current().toLowerCase(), (l = a[c]) || null;
            if ("=" === u) return e.eatWhile(/\w/), "tag";
            if ("{" === u) return "braket";
            if ("}" === u) return "braket";
            if (/\d/.test(u)) return "0" === u && e.eat("x") ? (e.eatWhile(/[0-9a-fA-F]/), "number") : (e.eatWhile(/\d/), "number");
            for (var d = 0; d < i.length; d++) if (l = i[d](u, e, t)) return l
        }, blockCommentStart: "/*", blockCommentEnd: "*/"
    }
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";
    e.defineMode("toml", function () {
        return {
            startState: function () {
                return {inString: !1, stringType: "", lhs: !0, inArray: 0}
            }, token: function (e, t) {
                if (t.inString || '"' != e.peek() && "'" != e.peek() || (t.stringType = e.peek(), e.next(), t.inString = !0), e.sol() && 0 === t.inArray && (t.lhs = !0), t.inString) {
                    for (; t.inString && !e.eol();) e.peek() === t.stringType ? (e.next(), t.inString = !1) : "\\" === e.peek() ? (e.next(), e.next()) : e.match(/^.[^\\\"\']*/);
                    return t.lhs ? "property string" : "string"
                }
                return t.inArray && "]" === e.peek() ? (e.next(), t.inArray-- , "bracket") : t.lhs && "[" === e.peek() && e.skipTo("]") ? (e.next(), "]" === e.peek() && e.next(), "atom") : "#" === e.peek() ? (e.skipToEnd(), "comment") : e.eatSpace() ? null : t.lhs && e.eatWhile(function (e) {
                    return "=" != e && " " != e
                }) ? "property" : t.lhs && "=" === e.peek() ? (e.next(), t.lhs = !1, null) : !t.lhs && e.match(/^\d\d\d\d[\d\-\:\.T]*Z/) ? "atom" : t.lhs || !e.match("true") && !e.match("false") ? t.lhs || "[" !== e.peek() ? !t.lhs && e.match(/^\-?\d+(?:\.\d+)?/) ? "number" : (e.eatSpace() || e.next(), null) : (t.inArray++ , e.next(), "bracket") : "atom"
            }
        }
    }), e.defineMIME("text/x-toml", "toml")
}), CodeMirror.defineMode("sequence", function () {
    return {
        token: function (e, t) {
            e.peek();
            return t.beginString ? (e.skipToEnd(), t.beginString = !1, "") : e.eatSpace() ? "" : e.eat("#") ? (e.skipToEnd(), "comment") : e.match(/title(\s|$)/i) ? "header" : e.match(/(left|right) of(\s|$)/i) || e.match(/over(\s|$)/i) ? "keyword" : e.match(/note|participant(\s|$)/i) ? "tag" : e.match(/,|->:|--|-|>>|>/) ? "operator" : e.match(/:\s*/) ? (t.beginString = !0, "atom") : e.match(/[^:\->,]+/) ? "def" : (e.next(), "")
        }, startState: function () {
            return {beginString: !1}
        }
    }
}), CodeMirror.defineMode("flow", function () {
    return {
        token: function (e, t) {
            e.peek();
            if (e.eatSpace()) return "";
            if (e.eat("#")) return e.skipToEnd(), "comment";
            if (e.match(":>")) return t.afterDef = !0, t.linkStart = !0, "operator";
            if (t.linkStart) return t.linkStart = !1, e.skipToEnd(), "link";
            var n, r, i = e.string.substring(e.pos), a = i.match(/=>/);
            return t.afterDef = t.afterDef && !a, !t.afterDef && a ? 0 == a.index ? (e.pos += 2, t.flowStart = !1, "operator") : (e.pos += a.index, t.flowStart = !1, "variable-3") : (n = i.match(/:/)) ? 0 == n.index ? (e.pos += 1, t.afterDef = !0, "operator") : (t.afterDef = !1, e.match("start") ? "keyword" : e.match("end") ? "keyword" : e.match("operation") ? "keyword" : e.match("inputoutput") ? "keyword" : e.match("subroutine") ? "keyword" : e.match("condition") ? "keyword" : (e.pos += n.index, "")) : (t.flowStart || (r = i.match(/->/)) && (t.afterDef = !1, t.flowStart = !0), t.flowStart ? (r = i.match(/->/)) ? r.index ? (e.pos += r.index, "variable-3") : (e.pos += 2, "operator") : (e.skipToEnd(), "variable-3") : (t.flowStart = !1, e.next(), ""))
        }, startState: function () {
            return {afterDef: !1, flowStart: !1, linkStart: !1}
        }
    }
}), CodeMirror.defineMode("mermaid", function () {
    var e = function (e) {
        e.beginString = !1, e.beginController = !1, e.beginActor = !1, e.beginAttr = !1
    }, t = function (e) {
        e.beginTittle = !1, e.beginSection = !1, e.beginDateFormat = !1
    }, n = function (e) {
        e.inFlowchart = !1, e.inSequence = !1, e.inGantt = !1, e.inClassDiagram = !1, e.inGitGraph = !1, e.inInfo = !1, e.inDotGraph = !1
    }, r = function (e) {
        var t = this.string.substring(this.pos).match(e);
        if (t) return this.pos += t.index - t.pos || 1, t.index;
        this.skipToEnd()
    };
    return {
        token: function (i, a) {
            i.peek();
            if (i.eatSpace()) return "";
            if (i.match("%%")) return i.skipToEnd(), "comment";
            if (i.match("graph", !0, !0)) return n(a), a.inFlowchart = !0, "keyword";
            if (i.match("gantt", !0, !0)) return n(a), a.inGantt = !0, "keyword";
            if (i.match("sequenceDiagram", !0, !0)) return n(a), a.inSequence = !0, e(a), "keyword";
            if (i.match("classDiagram", !0, !0)) return n(a), a.inSequence = !0, "keyword";
            if (i.match("gitGraph", !0, !0)) return n(a), a.inGitGraph = !0, "keyword";
            if (i.match("info", !0, !0)) return sresetState(a), a.inInfo = !0, "keyword";
            if (i.match("digraph", !0, !0)) return n(a), a.inDotGraph = !0, "keyword";
            if (a.inFlowchart) {
                if (i.match("TB") || i.match("BT") || i.match("LR") || i.match("RL")) return "attribute";
                if (i.match(/(subgraph|title|end|style|classDef)(\s|$)/)) return "keyword";
                var o = null;
                return textAfter = i.string.substring(i.pos), (o = textAfter.match(/^\(\(.*?\)\)/)) ? (i.pos += o[0].length, "quote") : (o = textAfter.match(/^\(.*?\)/)) ? (i.pos += o[0].length, "quote") : (o = textAfter.match(/^\[.*?\]/)) ? (i.pos += o[0].length, "quote") : (o = textAfter.match(/^\{.*?\}/)) ? (i.pos += o[0].length, "quote") : (o = textAfter.match(/^\>[^\[]*?\]/)) ? (i.pos += o[0].length, "quote") : i.match(/^--.+--[->]/) ? "operator" : i.match(/^--[->]\|.+\|/) ? "operator" : i.match(/^--[->]/) ? "operator" : i.match(/^-\..+\.->/) ? "operator" : i.match(/^-\.->/) ? "operator" : i.match(/^==.+==>/) ? "operator" : i.match(/^==>/) ? "operator" : i.match(/^[^\[\(\{\>\-=%]+/) ? "" : (r.call(i, /[ \[\{\(\-=>|]/), "")
            }
            if (a.inSequence) return a.beginString ? (i.skipToEnd(), e(a), "") : a.beginController ? (i.skipToEnd(), e(a), "") : a.beginActor ? (i.skipToEnd(), e(a), "def") : i.match(/participant(\s|$)/i) ? (a.beginActor = !0, "tag") : i.match(/note(\s|$)/i) ? "tag" : i.match(/title(\s|$)/i) ? (a.beginController = !0, "header") : i.match(/(left|right) of(\s|$)/i) || i.match(/over(\s|$)/i) ? "keyword" : i.match(/,|->:|--|-|>>|>/) ? "operator" : i.match(/:\s*/) ? (e(a), a.beginString = !0, "atom") : i.match(/(alt|opt|else|loop)(\s|$)/i) ? (e(a), a.beginController = !0, "keyword") : i.match(/end(\s|$)/i) ? (e(a), "keyword") : i.match(/[^:\->,]+/) ? "def" : (r.call(i, /[ \[\{\(\-=>:|]/), "");
            if (a.inGantt) {
                if (a.beginTittle) return i.skipToEnd(), t(a), "header";
                if (a.beginSection) return i.skipToEnd(), t(a), "def";
                if (a.beginDateFormat) return i.skipToEnd(), t(a), "variable-3";
                if (i.match(/title(?:\s|$)/)) return t(a), a.beginTittle = !0, "keyword";
                if (i.match(/dateFormat(\s|$)/i)) return a.beginDateFormat = !0, "keyword";
                if (i.match(/section(?:\s|$)/)) return t(a), a.beginSection = !0, "keyword";
                if (i.match(/[:,]/)) return "operator";
                var s = i.string.match(/:/);
                return s ? i.pos < s.index ? (i.pos = s.index, "") : i.match(/(done|active)(\W|$)/) ? "operator" : i.match(/(crit)(\W|$)/) ? "builtin" : i.match(/^\d[\d\-dhym]+/) ? "variable-3" : i.match(/(after)(\W|$)/) ? "keyword" : (r.call(i, /[ ,:]/), "") : (i.skipToEnd(), "")
            }
            return i.skipToEnd(), ""
        }, startState: function () {
            var r = {};
            return n(r), e(r), t(r), r
        }
    }
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";
    e.defineMode("mllike", function (e, t) {
        function n(e, n) {
            var o = e.next();
            if ('"' === o) return n.tokenize = r, n.tokenize(e, n);
            if ("(" === o && e.eat("*")) return n.commentLevel++ , n.tokenize = i, n.tokenize(e, n);
            if ("~" === o) return e.eatWhile(/\w/), "variable-2";
            if ("`" === o) return e.eatWhile(/\w/), "quote";
            if ("/" === o && t.slashComments && e.eat("/")) return e.skipToEnd(), "comment";
            if (/\d/.test(o)) return e.eatWhile(/[\d]/), e.eat(".") && e.eatWhile(/[\d]/), "number";
            if (/[+\-*&%=<>!?|]/.test(o)) return "operator";
            if (/[\w\xa1-\uffff]/.test(o)) {
                e.eatWhile(/[\w\xa1-\uffff]/);
                var s = e.current();
                return a.hasOwnProperty(s) ? a[s] : "variable"
            }
            return null
        }

        function r(e, t) {
            for (var r, i = !1, a = !1; null != (r = e.next());) {
                if ('"' === r && !a) {
                    i = !0;
                    break
                }
                a = !a && "\\" === r
            }
            return i && !a && (t.tokenize = n), "string"
        }

        function i(e, t) {
            for (var r, i; t.commentLevel > 0 && null != (i = e.next());) "(" === r && "*" === i && t.commentLevel++ , "*" === r && ")" === i && t.commentLevel-- , r = i;
            return t.commentLevel <= 0 && (t.tokenize = n), "comment"
        }

        var a = {
            let: "keyword",
            rec: "keyword",
            in: "keyword",
            of: "keyword",
            and: "keyword",
            if: "keyword",
            then: "keyword",
            else: "keyword",
            for: "keyword",
            to: "keyword",
            while: "keyword",
            do: "keyword",
            done: "keyword",
            fun: "keyword",
            function: "keyword",
            val: "keyword",
            type: "keyword",
            mutable: "keyword",
            match: "keyword",
            with: "keyword",
            try: "keyword",
            open: "builtin",
            ignore: "builtin",
            begin: "keyword",
            end: "keyword"
        }, o = t.extraWords || {};
        for (var s in o) o.hasOwnProperty(s) && (a[s] = t.extraWords[s]);
        return {
            startState: function () {
                return {tokenize: n, commentLevel: 0}
            }, token: function (e, t) {
                return e.eatSpace() ? null : t.tokenize(e, t)
            }, blockCommentStart: "(*", blockCommentEnd: "*)", lineComment: t.slashComments ? "//" : null
        }
    }), e.defineMIME("text/x-ocaml", {
        name: "mllike",
        extraWords: {
            succ: "keyword",
            trace: "builtin",
            exit: "builtin",
            print_string: "builtin",
            print_endline: "builtin",
            true: "atom",
            false: "atom",
            raise: "keyword"
        }
    }), e.defineMIME("text/x-fsharp", {
        name: "mllike",
        extraWords: {
            abstract: "keyword",
            as: "keyword",
            assert: "keyword",
            base: "keyword",
            class: "keyword",
            default: "keyword",
            delegate: "keyword",
            downcast: "keyword",
            downto: "keyword",
            elif: "keyword",
            exception: "keyword",
            extern: "keyword",
            finally: "keyword",
            global: "keyword",
            inherit: "keyword",
            inline: "keyword",
            interface: "keyword",
            internal: "keyword",
            lazy: "keyword",
            "let!": "keyword",
            member: "keyword",
            module: "keyword",
            namespace: "keyword",
            new: "keyword",
            null: "keyword",
            override: "keyword",
            private: "keyword",
            public: "keyword",
            return: "keyword",
            "return!": "keyword",
            select: "keyword",
            static: "keyword",
            struct: "keyword",
            upcast: "keyword",
            use: "keyword",
            "use!": "keyword",
            val: "keyword",
            when: "keyword",
            yield: "keyword",
            "yield!": "keyword",
            List: "builtin",
            Seq: "builtin",
            Map: "builtin",
            Set: "builtin",
            int: "builtin",
            string: "builtin",
            raise: "builtin",
            failwith: "builtin",
            not: "builtin",
            true: "builtin",
            false: "builtin"
        },
        slashComments: !0
    })
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";
    e.defineMode("elm", function () {
        function e(e, t, n) {
            return t(n), n(e, t)
        }

        function t() {
            return function (t, i) {
                if (t.eatWhile(m)) return null;
                var p = t.next();
                if (f.test(p)) {
                    if ("{" == p && t.eat("-")) {
                        g = "comment";
                        return t.eat("#") && (g = "meta"), e(t, i, n(g, 1))
                    }
                    return null
                }
                if ("'" == p) return t.eat("\\"), t.next(), t.eat("'") ? "string" : "error";
                if ('"' == p) return e(t, i, r);
                if (o.test(p)) return t.eatWhile(u), t.eat(".") ? "qualifier" : "variable-2";
                if (a.test(p)) {
                    var h = 1 === t.pos;
                    return t.eatWhile(u), h ? "variable-3" : "variable"
                }
                if (s.test(p)) {
                    if ("0" == p) {
                        if (t.eat(/[xX]/)) return t.eatWhile(l), "integer";
                        if (t.eat(/[oO]/)) return t.eatWhile(c), "number"
                    }
                    t.eatWhile(s);
                    var g = "number";
                    return t.eat(".") && (g = "number", t.eatWhile(s)), t.eat(/[eE]/) && (g = "number", t.eat(/[-+]/), t.eatWhile(s)), g
                }
                return d.test(p) ? "-" == p && t.eat(/-/) && (t.eatWhile(/-/), !t.eat(d)) ? (t.skipToEnd(), "comment") : (t.eatWhile(d), "builtin") : "error"
            }
        }

        function n(e, r) {
            return 0 == r ? t() : function (i, a) {
                for (var o = r; !i.eol();) {
                    var s = i.next();
                    if ("{" == s && i.eat("-")) ++o; else if ("-" == s && i.eat("}") && 0 == --o) return a(t()), e
                }
                return a(n(e, o)), e
            }
        }

        function r(e, n) {
            for (; !e.eol();) {
                var r = e.next();
                if ('"' == r) return n(t()), "string";
                if ("\\" == r) {
                    if (e.eol() || e.eat(m)) return n(i), "string";
                    e.eat("&") || e.next()
                }
            }
            return n(t()), "error"
        }

        function i(n, i) {
            return n.eat("\\") ? e(n, i, r) : (n.next(), i(t()), "error")
        }

        var a = /[a-z_]/, o = /[A-Z]/, s = /[0-9]/, l = /[0-9A-Fa-f]/, c = /[0-7]/, u = /[a-z_A-Z0-9\']/,
            d = /[-!#$%&*+.\/<=>?@\\^|~:\u03BB\u2192]/, f = /[(),;[\]`{}]/, m = /[ \t\v\f]/, p = function () {
                for (var e = {}, t = ["case", "of", "as", "if", "then", "else", "let", "in", "infix", "infixl", "infixr", "type", "alias", "input", "output", "foreign", "loopback", "module", "where", "import", "exposing", "_", "..", "|", ":", "=", "\\", '"', "->", "<-"], n = t.length; n--;) e[t[n]] = "keyword";
                return e
            }();
        return {
            startState: function () {
                return {f: t()}
            }, copyState: function (e) {
                return {f: e.f}
            }, token: function (e, t) {
                var n = t.f(e, function (e) {
                    t.f = e
                }), r = e.current();
                return p.hasOwnProperty(r) ? p[r] : n
            }
        }
    }), e.defineMIME("text/x-elm", "elm")
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";

    function t(e) {
        var t = e.match(/^\s*\S/);
        return e.skipToEnd(), t ? "error" : null
    }

    e.defineMode("asciiarmor", function () {
        return {
            token: function (e, n) {
                var r;
                if ("top" == n.state) return e.sol() && (r = e.match(/^-----BEGIN (.*)?-----\s*$/)) ? (n.state = "headers", n.type = r[1], "tag") : t(e);
                if ("headers" == n.state) {
                    if (e.sol() && e.match(/^\w+:/)) return n.state = "header", "atom";
                    var i = t(e);
                    return i && (n.state = "body"), i
                }
                return "header" == n.state ? (e.skipToEnd(), n.state = "headers", "string") : "body" == n.state ? e.sol() && (r = e.match(/^-----END (.*)?-----\s*$/)) ? r[1] != n.type ? "error" : (n.state = "end", "tag") : e.eatWhile(/[A-Za-z0-9+\/=]/) ? null : (e.next(), "error") : "end" == n.state ? t(e) : void 0
            }, blankLine: function (e) {
                "headers" == e.state && (e.state = "body")
            }, startState: function () {
                return {state: "top", type: null}
            }
        }
    }), e.defineMIME("application/pgp", "asciiarmor"), e.defineMIME("application/pgp-keys", "asciiarmor"), e.defineMIME("application/pgp-signature", "asciiarmor")
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";
    e.defineMode("spreadsheet", function () {
        return {
            startState: function () {
                return {stringType: null, stack: []}
            }, token: function (e, t) {
                if (e) {
                    switch (0 === t.stack.length && ('"' != e.peek() && "'" != e.peek() || (t.stringType = e.peek(), e.next(), t.stack.unshift("string"))), t.stack[0]) {
                        case "string":
                            for (; "string" === t.stack[0] && !e.eol();) e.peek() === t.stringType ? (e.next(), t.stack.shift()) : "\\" === e.peek() ? (e.next(), e.next()) : e.match(/^.[^\\\"\']*/);
                            return "string";
                        case "characterClass":
                            for (; "characterClass" === t.stack[0] && !e.eol();) e.match(/^[^\]\\]+/) || e.match(/^\\./) || t.stack.shift();
                            return "operator"
                    }
                    var n = e.peek();
                    switch (n) {
                        case "[":
                            return e.next(), t.stack.unshift("characterClass"), "bracket";
                        case ":":
                            return e.next(), "operator";
                        case "\\":
                            return e.match(/\\[a-z]+/) ? "string-2" : (e.next(), "atom");
                        case ".":
                        case ",":
                        case ";":
                        case "*":
                        case "-":
                        case "+":
                        case "^":
                        case "<":
                        case "/":
                        case "=":
                            return e.next(), "atom";
                        case "$":
                            return e.next(), "builtin"
                    }
                    return e.match(/\d+/) ? e.match(/^\w+/) ? "error" : "number" : e.match(/^[a-zA-Z_]\w*/) ? e.match(/(?=[\(.])/, !1) ? "keyword" : "variable-2" : -1 != ["[", "]", "(", ")", "{", "}"].indexOf(n) ? (e.next(), "bracket") : (e.eatSpace() || e.next(), null)
                }
            }
        }
    }), e.defineMIME("text/x-spreadsheet", "spreadsheet")
}), CodeMirror.defineMode("elixir", function (e) {
    return parseComment = function (e, t) {
        return e.skipToEnd(), "comment"
    }, parseStringDelimiter = function (e, t, n) {
        return t.inString = !t.inString, t.inString && e.eatWhile(n), "string"
    }, parseDocStringDelimiter = function (e, t, n) {
        return t.inDocString = !t.inDocString, t.inDocString && e.eatWhile(n), "comment"
    }, matchesAtom = function (e) {
        return e.match(/:\w+[\?!]?/) || e.match(/\w+[\?!]?:/) || e.match(/:"[^"]+"/) || e.match(/:'[^']+'/) || e.match(/"[^"]+":/) || e.match(/'[^']+':/)
    }, {
        startState: function () {
            return {inDocString: !1, inString: !1, defining: !1}
        }, token: function (e, t) {
            var n;
            return e.eatSpace(), e.match("%B") && (n = "string"), e.match('"""') && (n = parseDocStringDelimiter(e, t, '"""')), e.match('"') && (n = parseStringDelimiter(e, t, '"')), e.match("#") && !t.inString && (n = parseComment(e, t)), matchesAtom(e) && (n = "atom"), e.match(/@(_|[a-z])\w*/) && (n = "attribute"), e.match(/[A-Z]\w+/) && (n = "constant", t.defining = !1), t.defining && (n = "defined", e.eatWhile(/\w/), t.defining = !1), e.match(/(def|defp|defmodule)\b/) && (n = "def", t.defining = !0), n || e.next(), t.inDocString ? n = "comment" : t.inString ? n = "string" : n
        }
    }
}), CodeMirror.defineMIME("text/x-elixir", "elixir"), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";
    e.defineMode("cmake", function () {
        function e(e, t) {
            for (var n, r, i = !1; !e.eol() && (n = e.next()) != t.pending;) {
                if ("$" === n && "\\" != r && '"' == t.pending) {
                    i = !0;
                    break
                }
                r = n
            }
            return i && e.backUp(1), n == t.pending ? t.continueString = !1 : t.continueString = !0, "string"
        }

        function t(t, r) {
            var i = t.next() || "";
            return "$" === i ? t.match(n) ? "variable-2" : "variable" : r.continueString ? (t.backUp(1), e(t, r)) : t.match(/(\s+)?\w+\(/) || t.match(/(\s+)?\w+\ \(/) ? (t.backUp(1), "def") : "#" == i ? (t.skipToEnd(), "comment") : "'" == i || '"' == i ? (r.pending = i, e(t, r)) : "(" == i || ")" == i ? "bracket" : i.match(/[0-9]/) ? "number" : (t.eatWhile(/[\w-]/), null)
        }

        var n = /({)?[a-zA-Z0-9_]+(})?/;
        return {
            startState: function () {
                var e = {};
                return e.inDefinition = !1, e.inInclude = !1, e.continueString = !1, e.pending = !1, e
            }, token: function (e, n) {
                return e.eatSpace() ? null : t(e, n)
            }
        }
    }), e.defineMIME("text/x-cmake", "cmake")
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";
    var t = function (e) {
        return new RegExp("^(?:" + e.join("|") + ")$", "i")
    };
    e.defineMode("cypher", function (n) {
        var r, i = function (e) {
                var t = e.next();
                if ('"' === t) return e.match(/.*?"/), "string";
                if ("'" === t) return e.match(/.*?'/), "string";
                if (/[{}\(\),\.;\[\]]/.test(t)) return r = t, "node";
                if ("/" === t && e.eat("/")) return e.skipToEnd(), "comment";
                if (d.test(t)) return e.eatWhile(d), null;
                if (e.eatWhile(/[_\w\d]/), e.eat(":")) return e.eatWhile(/[\w\d_\-]/), "atom";
                var n = e.current();
                return l.test(n) ? "builtin" : c.test(n) ? "def" : u.test(n) ? "keyword" : "variable"
            }, a = function (e, t, n) {
                return e.context = {prev: e.context, indent: e.indent, col: n, type: t}
            }, o = function (e) {
                return e.indent = e.context.indent, e.context = e.context.prev
            }, s = n.indentUnit,
            l = t(["abs", "acos", "allShortestPaths", "asin", "atan", "atan2", "avg", "ceil", "coalesce", "collect", "cos", "cot", "count", "degrees", "e", "endnode", "exp", "extract", "filter", "floor", "haversin", "head", "id", "keys", "labels", "last", "left", "length", "log", "log10", "lower", "ltrim", "max", "min", "node", "nodes", "percentileCont", "percentileDisc", "pi", "radians", "rand", "range", "reduce", "rel", "relationship", "relationships", "replace", "reverse", "right", "round", "rtrim", "shortestPath", "sign", "sin", "size", "split", "sqrt", "startnode", "stdev", "stdevp", "str", "substring", "sum", "tail", "tan", "timestamp", "toFloat", "toInt", "toString", "trim", "type", "upper"]),
            c = t(["all", "and", "any", "contains", "exists", "has", "in", "none", "not", "or", "single", "xor"]),
            u = t(["as", "asc", "ascending", "assert", "by", "case", "commit", "constraint", "create", "csv", "cypher", "delete", "desc", "descending", "detach", "distinct", "drop", "else", "end", "ends", "explain", "false", "fieldterminator", "foreach", "from", "headers", "in", "index", "is", "join", "limit", "load", "match", "merge", "null", "on", "optional", "order", "periodic", "profile", "remove", "return", "scan", "set", "skip", "start", "starts", "then", "true", "union", "unique", "unwind", "using", "when", "where", "with", "call", "yield"]),
            d = /[*+\-<>=&|~%^]/;
        return {
            startState: function () {
                return {tokenize: i, context: null, indent: 0, col: 0}
            }, token: function (e, t) {
                if (e.sol() && (t.context && null == t.context.align && (t.context.align = !1), t.indent = e.indentation()), e.eatSpace()) return null;
                var n = t.tokenize(e, t);
                if ("comment" !== n && t.context && null == t.context.align && "pattern" !== t.context.type && (t.context.align = !0), "(" === r) a(t, ")", e.column()); else if ("[" === r) a(t, "]", e.column()); else if ("{" === r) a(t, "}", e.column()); else if (/[\]\}\)]/.test(r)) {
                    for (; t.context && "pattern" === t.context.type;) o(t);
                    t.context && r === t.context.type && o(t)
                } else "." === r && t.context && "pattern" === t.context.type ? o(t) : /atom|string|variable/.test(n) && t.context && (/[\}\]]/.test(t.context.type) ? a(t, "pattern", e.column()) : "pattern" !== t.context.type || t.context.align || (t.context.align = !0, t.context.col = e.column()));
                return n
            }, indent: function (t, n) {
                var r = n && n.charAt(0), i = t.context;
                if (/[\]\}]/.test(r)) for (; i && "pattern" === i.type;) i = i.prev;
                var a = i && r === i.type;
                return i ? "keywords" === i.type ? e.commands.newlineAndIndent : i.align ? i.col + (a ? 0 : 1) : i.indent + (a ? 0 : s) : 0
            }
        }
    }), e.modeExtensions.cypher = {
        autoFormatLineBreaks: function (e) {
            for (var t = e.split("\n"), n = /\s+\b(return|where|order by|match|with|skip|limit|create|delete|set)\b\s/g, r = 0; r < t.length; r++) t[r] = t[r].replace(n, " \n$1 ").trim();
            return t.join("\n")
        }
    }, e.defineMIME("application/x-cypher-query", "cypher")
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror"), require("../clike/clike")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror", "../clike/clike"], e) : e(CodeMirror)
}(function (e) {
    "use strict";

    function t(e) {
        for (var t = {}, n = 0; n < e.length; ++n) t[e[n]] = !0;
        return t
    }

    function n(e) {
        (e.interpolationStack || (e.interpolationStack = [])).push(e.tokenize)
    }

    function r(e) {
        return (e.interpolationStack || (e.interpolationStack = [])).pop()
    }

    function i(e) {
        return e.interpolationStack ? e.interpolationStack.length : 0
    }

    function a(e, t, r, i) {
        function a(t, r) {
            for (var a = !1; !t.eol();) {
                if (!i && !a && "$" == t.peek()) return n(r), r.tokenize = o, "string";
                var l = t.next();
                if (l == e && !a && (!s || t.match(e + e))) {
                    r.tokenize = null;
                    break
                }
                a = !i && !a && "\\" == l
            }
            return "string"
        }

        var s = !1;
        if (t.eat(e)) {
            if (!t.eat(e)) return "string";
            s = !0
        }
        return r.tokenize = a, a(t, r)
    }

    function o(e, t) {
        return e.eat("$"), e.eat("{") ? t.tokenize = null : t.tokenize = s, null
    }

    function s(e, t) {
        return e.eatWhile(/[\w_]/), t.tokenize = r(t), "variable"
    }

    function l(e) {
        return function (t, n) {
            for (var r; r = t.next();) {
                if ("*" == r && t.eat("/")) {
                    if (1 == e) {
                        n.tokenize = null;
                        break
                    }
                    return n.tokenize = l(e - 1), n.tokenize(t, n)
                }
                if ("/" == r && t.eat("*")) return n.tokenize = l(e + 1), n.tokenize(t, n)
            }
            return "comment"
        }
    }

    var c = "this super static final const abstract class extends external factory implements get native operator set typedef with enum throw rethrow assert break case continue default in return new deferred async await covariant try catch finally do else for if switch while import library export part of show hide is as".split(" "),
        u = "try catch finally do else for if switch while".split(" "), d = "true false null".split(" "),
        f = "void bool num int double dynamic var String".split(" ");
    e.defineMIME("application/dart", {
        name: "clike",
        keywords: t(c),
        blockKeywords: t(u),
        builtin: t(f),
        atoms: t(d),
        hooks: {
            "@": function (e) {
                return e.eatWhile(/[\w\$_\.]/), "meta"
            }, "'": function (e, t) {
                return a("'", e, t, !1)
            }, '"': function (e, t) {
                return a('"', e, t, !1)
            }, r: function (e, t) {
                var n = e.peek();
                return ("'" == n || '"' == n) && a(e.next(), e, t, !0)
            }, "}": function (e, t) {
                return i(t) > 0 && (t.tokenize = r(t), null)
            }, "/": function (e, t) {
                return !!e.eat("*") && (t.tokenize = l(1), t.tokenize(e, t))
            }
        }
    }), e.registerHelper("hintWords", "application/dart", c.concat(d).concat(f)), e.defineMode("dart", function (t) {
        return e.getMode(t, "application/dart")
    }, "clike")
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror"), require("../htmlmixed/htmlmixed"), require("../../addon/mode/overlay")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror", "../htmlmixed/htmlmixed", "../../addon/mode/overlay"], e) : e(CodeMirror)
}(function (e) {
    "use strict";
    e.defineMode("django:inner", function () {
        function e(e, t) {
            if (e.match("{{")) return t.tokenize = n, "tag";
            if (e.match("{%")) return t.tokenize = r, "tag";
            if (e.match("{#")) return t.tokenize = i, "comment";
            for (; null != e.next() && !e.match(/\{[{%#]/, !1);) ;
            return null
        }

        function t(e, t) {
            return function (n, r) {
                return !r.escapeNext && n.eat(e) ? r.tokenize = t : (r.escapeNext && (r.escapeNext = !1), "\\" == n.next() && (r.escapeNext = !0)), "string"
            }
        }

        function n(n, r) {
            if (r.waitDot) {
                if (r.waitDot = !1, "." != n.peek()) return "null";
                if (n.match(/\.\W+/)) return "error";
                if (n.eat(".")) return r.waitProperty = !0, "null";
                throw Error("Unexpected error while waiting for property.")
            }
            if (r.waitPipe) {
                if (r.waitPipe = !1, "|" != n.peek()) return "null";
                if (n.match(/\.\W+/)) return "error";
                if (n.eat("|")) return r.waitFilter = !0, "null";
                throw Error("Unexpected error while waiting for filter.")
            }
            return r.waitProperty && (r.waitProperty = !1, n.match(/\b(\w+)\b/)) ? (r.waitDot = !0, r.waitPipe = !0, "property") : r.waitFilter && (r.waitFilter = !1, n.match(s)) ? "variable-2" : n.eatSpace() ? (r.waitProperty = !1, "null") : n.match(/\b\d+(\.\d+)?\b/) ? "number" : n.match("'") ? (r.tokenize = t("'", r.tokenize), "string") : n.match('"') ? (r.tokenize = t('"', r.tokenize), "string") : n.match(/\b(\w+)\b/) && !r.foundVariable ? (r.waitDot = !0, r.waitPipe = !0, "variable") : n.match("}}") ? (r.waitProperty = null, r.waitFilter = null, r.waitDot = null, r.waitPipe = null, r.tokenize = e, "tag") : (n.next(), "null")
        }

        function r(n, r) {
            if (r.waitDot) {
                if (r.waitDot = !1, "." != n.peek()) return "null";
                if (n.match(/\.\W+/)) return "error";
                if (n.eat(".")) return r.waitProperty = !0, "null";
                throw Error("Unexpected error while waiting for property.")
            }
            if (r.waitPipe) {
                if (r.waitPipe = !1, "|" != n.peek()) return "null";
                if (n.match(/\.\W+/)) return "error";
                if (n.eat("|")) return r.waitFilter = !0, "null";
                throw Error("Unexpected error while waiting for filter.")
            }
            if (r.waitProperty && (r.waitProperty = !1, n.match(/\b(\w+)\b/))) return r.waitDot = !0, r.waitPipe = !0, "property";
            if (r.waitFilter && (r.waitFilter = !1, n.match(s))) return "variable-2";
            if (n.eatSpace()) return r.waitProperty = !1, "null";
            if (n.match(/\b\d+(\.\d+)?\b/)) return "number";
            if (n.match("'")) return r.tokenize = t("'", r.tokenize), "string";
            if (n.match('"')) return r.tokenize = t('"', r.tokenize), "string";
            if (n.match(l)) return "operator";
            if (n.match(c)) return "keyword";
            var i = n.match(o);
            return i ? ("comment" == i[0] && (r.blockCommentTag = !0), "keyword") : n.match(/\b(\w+)\b/) ? (r.waitDot = !0, r.waitPipe = !0, "variable") : n.match("%}") ? (r.waitProperty = null, r.waitFilter = null, r.waitDot = null, r.waitPipe = null, r.blockCommentTag ? (r.blockCommentTag = !1, r.tokenize = a) : r.tokenize = e, "tag") : (n.next(), "null")
        }

        function i(t, n) {
            return t.match(/^.*?#\}/) ? n.tokenize = e : t.skipToEnd(), "comment"
        }

        function a(e, t) {
            return e.match(/\{%\s*endcomment\s*%\}/, !1) ? (t.tokenize = r, e.match("{%"), "tag") : (e.next(), "comment")
        }

        var o = ["block", "endblock", "for", "endfor", "true", "false", "filter", "endfilter", "loop", "none", "self", "super", "if", "elif", "endif", "as", "else", "import", "with", "endwith", "without", "context", "ifequal", "endifequal", "ifnotequal", "endifnotequal", "extends", "include", "load", "comment", "endcomment", "empty", "url", "static", "trans", "blocktrans", "endblocktrans", "now", "regroup", "lorem", "ifchanged", "endifchanged", "firstof", "debug", "cycle", "csrf_token", "autoescape", "endautoescape", "spaceless", "endspaceless", "ssi", "templatetag", "verbatim", "endverbatim", "widthratio"],
            s = ["add", "addslashes", "capfirst", "center", "cut", "date", "default", "default_if_none", "dictsort", "dictsortreversed", "divisibleby", "escape", "escapejs", "filesizeformat", "first", "floatformat", "force_escape", "get_digit", "iriencode", "join", "last", "length", "length_is", "linebreaks", "linebreaksbr", "linenumbers", "ljust", "lower", "make_list", "phone2numeric", "pluralize", "pprint", "random", "removetags", "rjust", "safe", "safeseq", "slice", "slugify", "stringformat", "striptags", "time", "timesince", "timeuntil", "title", "truncatechars", "truncatechars_html", "truncatewords", "truncatewords_html", "unordered_list", "upper", "urlencode", "urlize", "urlizetrunc", "wordcount", "wordwrap", "yesno"],
            l = ["==", "!=", "<", ">", "<=", ">="], c = ["in", "not", "or", "and"];
        return o = new RegExp("^\\b(" + o.join("|") + ")\\b"), s = new RegExp("^\\b(" + s.join("|") + ")\\b"), l = new RegExp("^\\b(" + l.join("|") + ")\\b"), c = new RegExp("^\\b(" + c.join("|") + ")\\b"), {
            startState: function () {
                return {tokenize: e}
            }, token: function (e, t) {
                return t.tokenize(e, t)
            }, blockCommentStart: "{% comment %}", blockCommentEnd: "{% endcomment %}"
        }
    }), e.defineMode("django", function (t) {
        var n = e.getMode(t, "text/html"), r = e.getMode(t, "django:inner");
        return e.overlayMode(n, r)
    }), e.defineMIME("text/x-django", "django")
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";
    e.defineMode("dtd", function (e) {
        function t(e, t) {
            return o = t, e
        }

        function n(e, n) {
            var o = e.next() || "";
            if ("<" != o || !e.eat("!")) {
                if ("<" == o && e.eat("?")) return n.tokenize = a("meta", "?>"), t("meta", o);
                if ("#" == o && e.eatWhile(/[\w]/)) return t("atom", "tag");
                if ("|" == o) return t("keyword", "seperator");
                if (o.match(/[\(\)\[\]\-\.,\+\?>]/)) return t(null, o);
                if (o.match(/[\[\]]/)) return t("rule", o);
                if ('"' == o || "'" == o) return n.tokenize = i(o), n.tokenize(e, n);
                if (e.eatWhile(/[a-zA-Z\?\+\d]/)) {
                    var s = e.current();
                    return null !== s.substr(s.length - 1, s.length).match(/\?|\+/) && e.backUp(1), t("tag", "tag")
                }
                return "%" == o || "*" == o ? t("number", "number") : (e.eatWhile(/[\w\\\-_%.{,]/), t(null, null))
            }
            return e.eatWhile(/[\-]/) ? (n.tokenize = r, r(e, n)) : e.eatWhile(/[\w]/) ? t("keyword", "doindent") : void 0
        }

        function r(e, r) {
            for (var i, a = 0; null != (i = e.next());) {
                if (a >= 2 && ">" == i) {
                    r.tokenize = n;
                    break
                }
                a = "-" == i ? a + 1 : 0
            }
            return t("comment", "comment")
        }

        function i(e) {
            return function (r, i) {
                for (var a, o = !1; null != (a = r.next());) {
                    if (a == e && !o) {
                        i.tokenize = n;
                        break
                    }
                    o = !o && "\\" == a
                }
                return t("string", "tag")
            }
        }

        function a(e, t) {
            return function (r, i) {
                for (; !r.eol();) {
                    if (r.match(t)) {
                        i.tokenize = n;
                        break
                    }
                    r.next()
                }
                return e
            }
        }

        var o, s = e.indentUnit;
        return {
            startState: function (e) {
                return {tokenize: n, baseIndent: e || 0, stack: []}
            }, token: function (e, t) {
                if (e.eatSpace()) return null;
                var n = t.tokenize(e, t), r = t.stack[t.stack.length - 1];
                return "[" == e.current() || "doindent" === o || "[" == o ? t.stack.push("rule") : "endtag" === o ? t.stack[t.stack.length - 1] = "endtag" : "]" == e.current() || "]" == o || ">" == o && "rule" == r ? t.stack.pop() : "[" == o && t.stack.push("["), n
            }, indent: function (e, t) {
                var n = e.stack.length;
                return t.match(/\]\s+|\]/) ? n -= 1 : ">" === t.substr(t.length - 1, t.length) && ("<" === t.substr(0, 1) || "doindent" == o && t.length > 1 || ("doindent" == o ? n-- : ">" == o && t.length > 1 || "tag" == o && ">" !== t || ("tag" == o && "rule" == e.stack[e.stack.length - 1] ? n-- : "tag" == o ? n++ : ">" === t && "rule" == e.stack[e.stack.length - 1] && ">" === o ? n-- : ">" === t && "rule" == e.stack[e.stack.length - 1] || ("<" !== t.substr(0, 1) && ">" === t.substr(0, 1) ? n -= 1 : ">" === t || (n -= 1)))), null != o && "]" != o || n--), e.baseIndent + n * s
            }, electricChars: "]>"
        }
    }), e.defineMIME("application/xml-dtd", "dtd")
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";

    function t(e, t) {
        for (var n = 0; n < e.length; n++) t(e[n], n)
    }

    function n(e, t) {
        for (var n = 0; n < e.length; n++) if (t(e[n], n)) return !0;
        return !1
    }

    e.defineMode("dylan", function (e) {
        function r(e, t, n) {
            return t.tokenize = n, n(e, t)
        }

        function i(e, t) {
            var i = e.peek();
            if ("'" == i || '"' == i) return e.next(), r(e, t, o(i, "string"));
            if ("/" == i) {
                if (e.next(), e.eat("*")) return r(e, t, a);
                if (e.eat("/")) return e.skipToEnd(), "comment";
                e.backUp(1)
            } else if (/[+\-\d\.]/.test(i)) {
                if (e.match(/^[+-]?[0-9]*\.[0-9]*([esdx][+-]?[0-9]+)?/i) || e.match(/^[+-]?[0-9]+([esdx][+-]?[0-9]+)/i) || e.match(/^[+-]?\d+/)) return "number"
            } else {
                if ("#" == i) return e.next(), '"' == (i = e.peek()) ? (e.next(), r(e, t, o('"', "string"))) : "b" == i ? (e.next(), e.eatWhile(/[01]/), "number") : "x" == i ? (e.next(), e.eatWhile(/[\da-f]/i), "number") : "o" == i ? (e.next(), e.eatWhile(/[0-7]/), "number") : "#" == i ? (e.next(), "punctuation") : "[" == i || "(" == i ? (e.next(), "bracket") : e.match(/f|t|all-keys|include|key|next|rest/i) ? "atom" : (e.eatWhile(/[-a-zA-Z]/), "error");
                if ("~" == i) return e.next(), "=" == (i = e.peek()) ? (e.next(), "=" == (i = e.peek()) ? (e.next(), "operator") : "operator") : "operator";
                if (":" == i) {
                    if (e.next(), "=" == (i = e.peek())) return e.next(), "operator";
                    if (":" == i) return e.next(), "punctuation"
                } else {
                    if (-1 != "[](){}".indexOf(i)) return e.next(), "bracket";
                    if (-1 != ".,".indexOf(i)) return e.next(), "punctuation";
                    if (e.match("end")) return "keyword"
                }
            }
            for (var s in u) if (u.hasOwnProperty(s)) {
                var l = u[s];
                if (l instanceof Array && n(l, function (t) {
                        return e.match(t)
                    }) || e.match(l)) return d[s]
            }
            return /[+\-*\/^=<>&|]/.test(i) ? (e.next(), "operator") : e.match("define") ? "def" : (e.eatWhile(/[\w\-]/), p.hasOwnProperty(e.current()) ? h[e.current()] : e.current().match(c) ? "variable" : (e.next(), "variable-2"))
        }

        function a(e, t) {
            for (var n, r = !1, a = !1, o = 0; n = e.next();) {
                if ("/" == n && r) {
                    if (!(o > 0)) {
                        t.tokenize = i;
                        break
                    }
                    o--
                } else "*" == n && a && o++;
                r = "*" == n, a = "/" == n
            }
            return "comment"
        }

        function o(e, t) {
            return function (n, r) {
                for (var a, o = !1, s = !1; null != (a = n.next());) {
                    if (a == e && !o) {
                        s = !0;
                        break
                    }
                    o = !o && "\\" == a
                }
                return !s && o || (r.tokenize = i), t
            }
        }

        var s = {
            unnamedDefinition: ["interface"],
            namedDefinition: ["module", "library", "macro", "C-struct", "C-union", "C-function", "C-callable-wrapper"],
            typeParameterizedDefinition: ["class", "C-subtype", "C-mapped-subtype"],
            otherParameterizedDefinition: ["method", "function", "C-variable", "C-address"],
            constantSimpleDefinition: ["constant"],
            variableSimpleDefinition: ["variable"],
            otherSimpleDefinition: ["generic", "domain", "C-pointer-type", "table"],
            statement: ["if", "block", "begin", "method", "case", "for", "select", "when", "unless", "until", "while", "iterate", "profiling", "dynamic-bind"],
            separator: ["finally", "exception", "cleanup", "else", "elseif", "afterwards"],
            other: ["above", "below", "by", "from", "handler", "in", "instance", "let", "local", "otherwise", "slot", "subclass", "then", "to", "keyed-by", "virtual"],
            signalingCalls: ["signal", "error", "cerror", "break", "check-type", "abort"]
        };
        s.otherDefinition = s.unnamedDefinition.concat(s.namedDefinition).concat(s.otherParameterizedDefinition), s.definition = s.typeParameterizedDefinition.concat(s.otherDefinition), s.parameterizedDefinition = s.typeParameterizedDefinition.concat(s.otherParameterizedDefinition), s.simpleDefinition = s.constantSimpleDefinition.concat(s.variableSimpleDefinition).concat(s.otherSimpleDefinition), s.keyword = s.statement.concat(s.separator).concat(s.other);
        var l = "[-_a-zA-Z?!*@<>$%]+", c = new RegExp("^" + l), u = {
            symbolKeyword: l + ":",
            symbolClass: "<" + l + ">",
            symbolGlobal: "\\*" + l + "\\*",
            symbolConstant: "\\$" + l
        }, d = {symbolKeyword: "atom", symbolClass: "tag", symbolGlobal: "variable-2", symbolConstant: "variable-3"};
        for (var f in u) u.hasOwnProperty(f) && (u[f] = new RegExp("^" + u[f]));
        u.keyword = [/^with(?:out)?-[-_a-zA-Z?!*@<>$%]+/];
        var m = {};
        m.keyword = "keyword", m.definition = "def", m.simpleDefinition = "def", m.signalingCalls = "builtin";
        var p = {}, h = {};
        return t(["keyword", "definition", "simpleDefinition", "signalingCalls"], function (e) {
            t(s[e], function (t) {
                p[t] = e, h[t] = m[e]
            })
        }), {
            startState: function () {
                return {tokenize: i, currentIndent: 0}
            }, token: function (e, t) {
                return e.eatSpace() ? null : t.tokenize(e, t)
            }, blockCommentStart: "/*", blockCommentEnd: "*/"
        }
    }), e.defineMIME("text/x-dylan", "dylan")
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror"), require("../../addon/mode/simple"), require("../../addon/mode/multiplex")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror", "../../addon/mode/simple", "../../addon/mode/multiplex"], e) : e(CodeMirror)
}(function (e) {
    "use strict";
    e.defineSimpleMode("handlebars-tags", {
        start: [{
            regex: /\{\{!--/,
            push: "dash_comment",
            token: "comment"
        }, {regex: /\{\{!/, push: "comment", token: "comment"}, {regex: /\{\{/, push: "handlebars", token: "tag"}],
        handlebars: [{regex: /\}\}/, pop: !0, token: "tag"}, {
            regex: /"(?:[^\\"]|\\.)*"?/,
            token: "string"
        }, {regex: /'(?:[^\\']|\\.)*'?/, token: "string"}, {
            regex: />|[#\/]([A-Za-z_]\w*)/,
            token: "keyword"
        }, {regex: /(?:else|this)\b/, token: "keyword"}, {regex: /\d+/i, token: "number"}, {
            regex: /=|~|@|true|false/,
            token: "atom"
        }, {regex: /(?:\.\.\/)*(?:[A-Za-z_][\w\.]*)+/, token: "variable-2"}],
        dash_comment: [{regex: /--\}\}/, pop: !0, token: "comment"}, {regex: /./, token: "comment"}],
        comment: [{regex: /\}\}/, pop: !0, token: "comment"}, {regex: /./, token: "comment"}]
    }), e.defineMode("handlebars", function (t, n) {
        var r = e.getMode(t, "handlebars-tags");
        return n && n.base ? e.multiplexingMode(e.getMode(t, n.base), {
            open: "{{",
            close: "}}",
            mode: r,
            parseDelimiters: !0
        }) : r
    }), e.defineMIME("text/x-handlebars-template", "handlebars")
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";

    function t(e) {
        return new RegExp("^((" + e.join(")|(") + "))\\b", "i")
    }

    function n(e) {
        if (e.eatSpace()) return null;
        if (e.match(";")) return e.skipToEnd(), "comment";
        if (e.match(/^[0-9\.+-]/, !1)) {
            if (e.match(/^[+-]?0x[0-9a-fA-F]+/)) return "number";
            if (e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/)) return "number";
            if (e.match(/^[+-]?\d+([EeDd][+-]?\d+)?/)) return "number"
        }
        return e.match(/^"([^"]|(""))*"/) ? "string" : e.match(/^'([^']|(''))*'/) ? "string" : e.match(o) ? "keyword" : e.match(i) ? "builtin" : e.match(s) ? "variable" : e.match(l) || e.match(c) ? "operator" : (e.next(), null)
    }

    var r = ["a_correlate", "abs", "acos", "adapt_hist_equal", "alog", "alog2", "alog10", "amoeba", "annotate", "app_user_dir", "app_user_dir_query", "arg_present", "array_equal", "array_indices", "arrow", "ascii_template", "asin", "assoc", "atan", "axis", "axis", "bandpass_filter", "bandreject_filter", "barplot", "bar_plot", "beseli", "beselj", "beselk", "besely", "beta", "biginteger", "bilinear", "bin_date", "binary_template", "bindgen", "binomial", "bit_ffs", "bit_population", "blas_axpy", "blk_con", "boolarr", "boolean", "boxplot", "box_cursor", "breakpoint", "broyden", "bubbleplot", "butterworth", "bytarr", "byte", "byteorder", "bytscl", "c_correlate", "calendar", "caldat", "call_external", "call_function", "call_method", "call_procedure", "canny", "catch", "cd", "cdf", "ceil", "chebyshev", "check_math", "chisqr_cvf", "chisqr_pdf", "choldc", "cholsol", "cindgen", "cir_3pnt", "clipboard", "close", "clust_wts", "cluster", "cluster_tree", "cmyk_convert", "code_coverage", "color_convert", "color_exchange", "color_quan", "color_range_map", "colorbar", "colorize_sample", "colormap_applicable", "colormap_gradient", "colormap_rotation", "colortable", "comfit", "command_line_args", "common", "compile_opt", "complex", "complexarr", "complexround", "compute_mesh_normals", "cond", "congrid", "conj", "constrained_min", "contour", "contour", "convert_coord", "convol", "convol_fft", "coord2to3", "copy_lun", "correlate", "cos", "cosh", "cpu", "cramer", "createboxplotdata", "create_cursor", "create_struct", "create_view", "crossp", "crvlength", "ct_luminance", "cti_test", "cursor", "curvefit", "cv_coord", "cvttobm", "cw_animate", "cw_animate_getp", "cw_animate_load", "cw_animate_run", "cw_arcball", "cw_bgroup", "cw_clr_index", "cw_colorsel", "cw_defroi", "cw_field", "cw_filesel", "cw_form", "cw_fslider", "cw_light_editor", "cw_light_editor_get", "cw_light_editor_set", "cw_orient", "cw_palette_editor", "cw_palette_editor_get", "cw_palette_editor_set", "cw_pdmenu", "cw_rgbslider", "cw_tmpl", "cw_zoom", "db_exists", "dblarr", "dcindgen", "dcomplex", "dcomplexarr", "define_key", "define_msgblk", "define_msgblk_from_file", "defroi", "defsysv", "delvar", "dendro_plot", "dendrogram", "deriv", "derivsig", "determ", "device", "dfpmin", "diag_matrix", "dialog_dbconnect", "dialog_message", "dialog_pickfile", "dialog_printersetup", "dialog_printjob", "dialog_read_image", "dialog_write_image", "dictionary", "digital_filter", "dilate", "dindgen", "dissolve", "dist", "distance_measure", "dlm_load", "dlm_register", "doc_library", "double", "draw_roi", "edge_dog", "efont", "eigenql", "eigenvec", "ellipse", "elmhes", "emboss", "empty", "enable_sysrtn", "eof", "eos", "erase", "erf", "erfc", "erfcx", "erode", "errorplot", "errplot", "estimator_filter", "execute", "exit", "exp", "expand", "expand_path", "expint", "extrac", "extract_slice", "f_cvf", "f_pdf", "factorial", "fft", "file_basename", "file_chmod", "file_copy", "file_delete", "file_dirname", "file_expand_path", "file_gunzip", "file_gzip", "file_info", "file_lines", "file_link", "file_mkdir", "file_move", "file_poll_input", "file_readlink", "file_same", "file_search", "file_tar", "file_test", "file_untar", "file_unzip", "file_which", "file_zip", "filepath", "findgen", "finite", "fix", "flick", "float", "floor", "flow3", "fltarr", "flush", "format_axis_values", "forward_function", "free_lun", "fstat", "fulstr", "funct", "function", "fv_test", "fx_root", "fz_roots", "gamma", "gamma_ct", "gauss_cvf", "gauss_pdf", "gauss_smooth", "gauss2dfit", "gaussfit", "gaussian_function", "gaussint", "get_drive_list", "get_dxf_objects", "get_kbrd", "get_login_info", "get_lun", "get_screen_size", "getenv", "getwindows", "greg2jul", "grib", "grid_input", "grid_tps", "grid3", "griddata", "gs_iter", "h_eq_ct", "h_eq_int", "hanning", "hash", "hdf", "hdf5", "heap_free", "heap_gc", "heap_nosave", "heap_refcount", "heap_save", "help", "hilbert", "hist_2d", "hist_equal", "histogram", "hls", "hough", "hqr", "hsv", "i18n_multibytetoutf8", "i18n_multibytetowidechar", "i18n_utf8tomultibyte", "i18n_widechartomultibyte", "ibeta", "icontour", "iconvertcoord", "idelete", "identity", "idl_base64", "idl_container", "idl_validname", "idlexbr_assistant", "idlitsys_createtool", "idlunit", "iellipse", "igamma", "igetcurrent", "igetdata", "igetid", "igetproperty", "iimage", "image", "image_cont", "image_statistics", "image_threshold", "imaginary", "imap", "indgen", "int_2d", "int_3d", "int_tabulated", "intarr", "interpol", "interpolate", "interval_volume", "invert", "ioctl", "iopen", "ir_filter", "iplot", "ipolygon", "ipolyline", "iputdata", "iregister", "ireset", "iresolve", "irotate", "isa", "isave", "iscale", "isetcurrent", "isetproperty", "ishft", "isocontour", "isosurface", "isurface", "itext", "itranslate", "ivector", "ivolume", "izoom", "journal", "json_parse", "json_serialize", "jul2greg", "julday", "keyword_set", "krig2d", "kurtosis", "kw_test", "l64indgen", "la_choldc", "la_cholmprove", "la_cholsol", "la_determ", "la_eigenproblem", "la_eigenql", "la_eigenvec", "la_elmhes", "la_gm_linear_model", "la_hqr", "la_invert", "la_least_square_equality", "la_least_squares", "la_linear_equation", "la_ludc", "la_lumprove", "la_lusol", "la_svd", "la_tridc", "la_trimprove", "la_triql", "la_trired", "la_trisol", "label_date", "label_region", "ladfit", "laguerre", "lambda", "lambdap", "lambertw", "laplacian", "least_squares_filter", "leefilt", "legend", "legendre", "linbcg", "lindgen", "linfit", "linkimage", "list", "ll_arc_distance", "lmfit", "lmgr", "lngamma", "lnp_test", "loadct", "locale_get", "logical_and", "logical_or", "logical_true", "lon64arr", "lonarr", "long", "long64", "lsode", "lu_complex", "ludc", "lumprove", "lusol", "m_correlate", "machar", "make_array", "make_dll", "make_rt", "map", "mapcontinents", "mapgrid", "map_2points", "map_continents", "map_grid", "map_image", "map_patch", "map_proj_forward", "map_proj_image", "map_proj_info", "map_proj_init", "map_proj_inverse", "map_set", "matrix_multiply", "matrix_power", "max", "md_test", "mean", "meanabsdev", "mean_filter", "median", "memory", "mesh_clip", "mesh_decimate", "mesh_issolid", "mesh_merge", "mesh_numtriangles", "mesh_obj", "mesh_smooth", "mesh_surfacearea", "mesh_validate", "mesh_volume", "message", "min", "min_curve_surf", "mk_html_help", "modifyct", "moment", "morph_close", "morph_distance", "morph_gradient", "morph_hitormiss", "morph_open", "morph_thin", "morph_tophat", "multi", "n_elements", "n_params", "n_tags", "ncdf", "newton", "noise_hurl", "noise_pick", "noise_scatter", "noise_slur", "norm", "obj_class", "obj_destroy", "obj_hasmethod", "obj_isa", "obj_new", "obj_valid", "objarr", "on_error", "on_ioerror", "online_help", "openr", "openu", "openw", "oplot", "oploterr", "orderedhash", "p_correlate", "parse_url", "particle_trace", "path_cache", "path_sep", "pcomp", "plot", "plot3d", "plot", "plot_3dbox", "plot_field", "ploterr", "plots", "polar_contour", "polar_surface", "polyfill", "polyshade", "pnt_line", "point_lun", "polarplot", "poly", "poly_2d", "poly_area", "poly_fit", "polyfillv", "polygon", "polyline", "polywarp", "popd", "powell", "pref_commit", "pref_get", "pref_set", "prewitt", "primes", "print", "printf", "printd", "pro", "product", "profile", "profiler", "profiles", "project_vol", "ps_show_fonts", "psafm", "pseudo", "ptr_free", "ptr_new", "ptr_valid", "ptrarr", "pushd", "qgrid3", "qhull", "qromb", "qromo", "qsimp", "query_*", "query_ascii", "query_bmp", "query_csv", "query_dicom", "query_gif", "query_image", "query_jpeg", "query_jpeg2000", "query_mrsid", "query_pict", "query_png", "query_ppm", "query_srf", "query_tiff", "query_video", "query_wav", "r_correlate", "r_test", "radon", "randomn", "randomu", "ranks", "rdpix", "read", "readf", "read_ascii", "read_binary", "read_bmp", "read_csv", "read_dicom", "read_gif", "read_image", "read_interfile", "read_jpeg", "read_jpeg2000", "read_mrsid", "read_pict", "read_png", "read_ppm", "read_spr", "read_srf", "read_sylk", "read_tiff", "read_video", "read_wav", "read_wave", "read_x11_bitmap", "read_xwd", "reads", "readu", "real_part", "rebin", "recall_commands", "recon3", "reduce_colors", "reform", "region_grow", "register_cursor", "regress", "replicate", "replicate_inplace", "resolve_all", "resolve_routine", "restore", "retall", "return", "reverse", "rk4", "roberts", "rot", "rotate", "round", "routine_filepath", "routine_info", "rs_test", "s_test", "save", "savgol", "scale3", "scale3d", "scatterplot", "scatterplot3d", "scope_level", "scope_traceback", "scope_varfetch", "scope_varname", "search2d", "search3d", "sem_create", "sem_delete", "sem_lock", "sem_release", "set_plot", "set_shading", "setenv", "sfit", "shade_surf", "shade_surf_irr", "shade_volume", "shift", "shift_diff", "shmdebug", "shmmap", "shmunmap", "shmvar", "show3", "showfont", "signum", "simplex", "sin", "sindgen", "sinh", "size", "skewness", "skip_lun", "slicer3", "slide_image", "smooth", "sobel", "socket", "sort", "spawn", "sph_4pnt", "sph_scat", "spher_harm", "spl_init", "spl_interp", "spline", "spline_p", "sprsab", "sprsax", "sprsin", "sprstp", "sqrt", "standardize", "stddev", "stop", "strarr", "strcmp", "strcompress", "streamline", "streamline", "stregex", "stretch", "string", "strjoin", "strlen", "strlowcase", "strmatch", "strmessage", "strmid", "strpos", "strput", "strsplit", "strtrim", "struct_assign", "struct_hide", "strupcase", "surface", "surface", "surfr", "svdc", "svdfit", "svsol", "swap_endian", "swap_endian_inplace", "symbol", "systime", "t_cvf", "t_pdf", "t3d", "tag_names", "tan", "tanh", "tek_color", "temporary", "terminal_size", "tetra_clip", "tetra_surface", "tetra_volume", "text", "thin", "thread", "threed", "tic", "time_test2", "timegen", "timer", "timestamp", "timestamptovalues", "tm_test", "toc", "total", "trace", "transpose", "tri_surf", "triangulate", "trigrid", "triql", "trired", "trisol", "truncate_lun", "ts_coef", "ts_diff", "ts_fcast", "ts_smooth", "tv", "tvcrs", "tvlct", "tvrd", "tvscl", "typename", "uindgen", "uint", "uintarr", "ul64indgen", "ulindgen", "ulon64arr", "ulonarr", "ulong", "ulong64", "uniq", "unsharp_mask", "usersym", "value_locate", "variance", "vector", "vector_field", "vel", "velovect", "vert_t3d", "voigt", "volume", "voronoi", "voxel_proj", "wait", "warp_tri", "watershed", "wdelete", "wf_draw", "where", "widget_base", "widget_button", "widget_combobox", "widget_control", "widget_displaycontextmenu", "widget_draw", "widget_droplist", "widget_event", "widget_info", "widget_label", "widget_list", "widget_propertysheet", "widget_slider", "widget_tab", "widget_table", "widget_text", "widget_tree", "widget_tree_move", "widget_window", "wiener_filter", "window", "window", "write_bmp", "write_csv", "write_gif", "write_image", "write_jpeg", "write_jpeg2000", "write_nrif", "write_pict", "write_png", "write_ppm", "write_spr", "write_srf", "write_sylk", "write_tiff", "write_video", "write_wav", "write_wave", "writeu", "wset", "wshow", "wtn", "wv_applet", "wv_cwt", "wv_cw_wavelet", "wv_denoise", "wv_dwt", "wv_fn_coiflet", "wv_fn_daubechies", "wv_fn_gaussian", "wv_fn_haar", "wv_fn_morlet", "wv_fn_paul", "wv_fn_symlet", "wv_import_data", "wv_import_wavelet", "wv_plot3d_wps", "wv_plot_multires", "wv_pwt", "wv_tool_denoise", "xbm_edit", "xdisplayfile", "xdxf", "xfont", "xinteranimate", "xloadct", "xmanager", "xmng_tmpl", "xmtool", "xobjview", "xobjview_rotate", "xobjview_write_image", "xpalette", "xpcolor", "xplot3d", "xregistered", "xroi", "xsq_test", "xsurface", "xvaredit", "xvolume", "xvolume_rotate", "xvolume_write_image", "xyouts", "zlib_compress", "zlib_uncompress", "zoom", "zoom_24"],
        i = t(r),
        a = ["begin", "end", "endcase", "endfor", "endwhile", "endif", "endrep", "endforeach", "break", "case", "continue", "for", "foreach", "goto", "if", "then", "else", "repeat", "until", "switch", "while", "do", "pro", "function"],
        o = t(a);
    e.registerHelper("hintWords", "idl", r.concat(a));
    var s = new RegExp("^[_a-z¡-￿][_a-z0-9¡-￿]*", "i"), l = /[+\-*&=<>\/@#~$]/,
        c = new RegExp("(and|or|eq|lt|le|gt|ge|ne|not)", "i");
    e.defineMode("idl", function () {
        return {
            token: function (e) {
                return n(e)
            }
        }
    }), e.defineMIME("text/x-idl", "idl")
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";

    function t(e) {
        return new RegExp("^((" + e.join(")|(") + "))\\b")
    }

    function n(e, t) {
        if (e.eatSpace()) return null;
        if (t.inComment) return e.match(v) ? (t.inComment = !1, "comment") : (e.skipToEnd(), "comment");
        if (e.match("//")) return e.skipToEnd(), "comment";
        if (e.match(y)) return "comment";
        if (e.match(k)) return t.inComment = !0, "comment";
        if (e.match(/^-?[0-9\.]/, !1) && (e.match(p) || e.match(h))) return "number";
        if (e.match(_)) return "string";
        if (t.startDef && e.match(g)) return "def";
        if (t.endDef && e.match(b)) return t.endDef = !1, "def";
        if (e.match(l)) return "keyword";
        if (e.match(o)) {
            var n = t.lastToken, r = (e.match(/^\s*(.+?)\b/, !1) || [])[1];
            return ":" === n || "implements" === n || "implements" === r || "=" === r ? "builtin" : "variable-3"
        }
        return e.match(i) ? "builtin" : e.match(u) ? "atom" : e.match(g) ? "variable" : e.match(m) ? "operator" : (e.next(), null)
    }

    var r = ["Clamp", "Constructor", "EnforceRange", "Exposed", "ImplicitThis", "Global", "PrimaryGlobal", "LegacyArrayClass", "LegacyUnenumerableNamedProperties", "LenientThis", "NamedConstructor", "NewObject", "NoInterfaceObject", "OverrideBuiltins", "PutForwards", "Replaceable", "SameObject", "TreatNonObjectAsNull", "TreatNullAs", "EmptyString", "Unforgeable", "Unscopeable"],
        i = t(r),
        a = ["unsigned", "short", "long", "unrestricted", "float", "double", "boolean", "byte", "octet", "Promise", "ArrayBuffer", "DataView", "Int8Array", "Int16Array", "Int32Array", "Uint8Array", "Uint16Array", "Uint32Array", "Uint8ClampedArray", "Float32Array", "Float64Array", "ByteString", "DOMString", "USVString", "sequence", "object", "RegExp", "Error", "DOMException", "FrozenArray", "any", "void"],
        o = t(a),
        s = ["attribute", "callback", "const", "deleter", "dictionary", "enum", "getter", "implements", "inherit", "interface", "iterable", "legacycaller", "maplike", "partial", "required", "serializer", "setlike", "setter", "static", "stringifier", "typedef", "optional", "readonly", "or"],
        l = t(s), c = ["true", "false", "Infinity", "NaN", "null"], u = t(c);
    e.registerHelper("hintWords", "webidl", r.concat(a).concat(s).concat(c));
    var d = t(["callback", "dictionary", "enum", "interface"]), f = t(["typedef"]), m = /^[:<=>?]/,
        p = /^-?([1-9][0-9]*|0[Xx][0-9A-Fa-f]+|0[0-7]*)/,
        h = /^-?(([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([Ee][+-]?[0-9]+)?|[0-9]+[Ee][+-]?[0-9]+)/,
        g = /^_?[A-Za-z][0-9A-Z_a-z-]*/, b = /^_?[A-Za-z][0-9A-Z_a-z-]*(?=\s*;)/, _ = /^"[^"]*"/, y = /^\/\*.*?\*\//,
        k = /^\/\*.*/, v = /^.*?\*\//;
    e.defineMode("webidl", function () {
        return {
            startState: function () {
                return {inComment: !1, lastToken: "", startDef: !1, endDef: !1}
            }, token: function (e, t) {
                var r = n(e, t);
                if (r) {
                    var i = e.current();
                    t.lastToken = i, "keyword" === r ? (t.startDef = d.test(i), t.endDef = t.endDef || f.test(i)) : t.startDef = !1
                }
                return r
            }
        }
    }), e.defineMIME("text/x-webidl", "webidl")
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";
    e.defineMode("yacas", function (t, n) {
        function r(e, t) {
            var n;
            if ('"' === (n = e.next())) return t.tokenize = i, t.tokenize(e, t);
            if ("/" === n) {
                if (e.eat("*")) return t.tokenize = a, t.tokenize(e, t);
                if (e.eat("/")) return e.skipToEnd(), "comment"
            }
            e.backUp(1);
            var r = e.match(/^(\w+)\s*\(/, !1);
            null !== r && s.hasOwnProperty(r[1]) && t.scopes.push("bodied");
            var l = o(t);
            if ("bodied" === l && "[" === n && t.scopes.pop(), "[" !== n && "{" !== n && "(" !== n || t.scopes.push(n), ("[" === (l = o(t)) && "]" === n || "{" === l && "}" === n || "(" === l && ")" === n) && t.scopes.pop(), ";" === n) for (; "bodied" === l;) t.scopes.pop(), l = o(t);
            return e.match(/\d+ *#/, !0, !1) ? "qualifier" : e.match(c, !0, !1) ? "number" : e.match(d, !0, !1) ? "variable-3" : e.match(/(?:\[|\]|{|}|\(|\))/, !0, !1) ? "bracket" : e.match(f, !0, !1) ? (e.backUp(1), "variable") : e.match(u, !0, !1) ? "variable-2" : e.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%)/, !0, !1) ? "operator" : (e.next(), "error")
        }

        function i(e, t) {
            for (var n, i = !1, a = !1; null != (n = e.next());) {
                if ('"' === n && !a) {
                    i = !0;
                    break
                }
                a = !a && "\\" === n
            }
            return i && !a && (t.tokenize = r), "string"
        }

        function a(e, t) {
            for (var n, i; null != (i = e.next());) {
                if ("*" === n && "/" === i) {
                    t.tokenize = r;
                    break
                }
                n = i
            }
            return "comment"
        }

        function o(e) {
            var t = null;
            return e.scopes.length > 0 && (t = e.scopes[e.scopes.length - 1]), t
        }

        var s = function (e) {
                for (var t = {}, n = e.split(" "), r = 0; r < n.length; ++r) t[n[r]] = !0;
                return t
            }("Assert BackQuote D Defun Deriv For ForEach FromFile FromString Function Integrate InverseTaylor Limit LocalSymbols Macro MacroRule MacroRulePattern NIntegrate Rule RulePattern Subst TD TExplicitSum TSum Taylor Taylor1 Taylor2 Taylor3 ToFile ToStdout ToString TraceRule Until While"),
            l = "(?:[a-zA-Z\\$'][a-zA-Z0-9\\$']*)",
            c = new RegExp("(?:(?:\\.\\d+|\\d+\\.\\d*|\\d+)(?:[eE][+-]?\\d+)?)"), u = new RegExp(l),
            d = new RegExp(l + "?_" + l), f = new RegExp(l + "\\s*\\(");
        return {
            startState: function () {
                return {tokenize: r, scopes: []}
            }, token: function (e, t) {
                return e.eatSpace() ? null : t.tokenize(e, t)
            }, indent: function (n, i) {
                if (n.tokenize !== r && null !== n.tokenize) return e.Pass;
                var a = 0;
                return "]" !== i && "];" !== i && "}" !== i && "};" !== i && ");" !== i || (a = -1), (n.scopes.length + a) * t.indentUnit
            }, electricChars: "{}[]();", blockCommentStart: "/*", blockCommentEnd: "*/", lineComment: "//"
        }
    }), e.defineMIME("text/x-yacas", {name: "yacas"})
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";

    function t(e) {
        return "Subject" === e ? "header" : "string"
    }

    function n(e, n) {
        if (e.sol()) {
            if (n.inSeparator = !1, n.inHeader && e.match(a)) return null;
            if (n.inHeader = !1, n.header = null, e.match(o)) return n.inHeaders = !0, n.inSeparator = !0, "atom";
            var r, i = !1;
            return (r = e.match(l)) || (i = !0) && (r = e.match(s)) ? (n.inHeaders = !0, n.inHeader = !0, n.emailPermitted = i, n.header = r[1], "atom") : n.inHeaders && (r = e.match(c)) ? (n.inHeader = !0, n.emailPermitted = !0, n.header = r[1], "atom") : (n.inHeaders = !1, e.skipToEnd(), null)
        }
        if (n.inSeparator) return e.match(u) ? "link" : e.match(d) ? "atom" : (e.skipToEnd(), "atom");
        if (n.inHeader) {
            var p = t(n.header);
            if (n.emailPermitted) {
                if (e.match(f)) return p + " link";
                if (e.match(m)) return p
            }
            return e.skipToEnd(), p
        }
        return e.skipToEnd(), null
    }

    var r = ["From", "Sender", "Reply-To", "To", "Cc", "Bcc", "Message-ID", "In-Reply-To", "References", "Resent-From", "Resent-Sender", "Resent-To", "Resent-Cc", "Resent-Bcc", "Resent-Message-ID", "Return-Path", "Received"],
        i = ["Date", "Subject", "Comments", "Keywords", "Resent-Date"];
    e.registerHelper("hintWords", "mbox", r.concat(i));
    var a = /^[ \t]/, o = /^From /, s = new RegExp("^(" + r.join("|") + "): "),
        l = new RegExp("^(" + i.join("|") + "): "), c = /^[^:]+:/, u = /^[^ ]+@[^ ]+/, d = /^.*?(?=[^ ]+?@[^ ]+)/,
        f = /^<.*?>/, m = /^.*?(?=<.*>)/;
    e.defineMode("mbox", function () {
        return {
            startState: function () {
                return {inSeparator: !1, inHeader: !1, emailPermitted: !1, header: null, inHeaders: !1}
            }, token: n, blankLine: function (e) {
                e.inHeaders = e.inSeparator = e.inHeader = !1
            }
        }
    }), e.defineMIME("application/mbox", "mbox")
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";

    function t(e) {
        for (var t = {}, n = e.split(","), r = 0; r < n.length; ++r) {
            var i = n[r].toUpperCase(), a = n[r].charAt(0).toUpperCase() + n[r].slice(1);
            t[n[r]] = !0, t[i] = !0, t[a] = !0
        }
        return t
    }

    function n(e) {
        return e.eatWhile(/[\w\$_]/), "meta"
    }

    e.defineMode("vhdl", function (e, r) {
        function i(e, t) {
            var n = e.next();
            if (m[n]) {
                var r = m[n](e, t);
                if (!1 !== r) return r
            }
            if ('"' == n) return t.tokenize = o(n), t.tokenize(e, t);
            if ("'" == n) return t.tokenize = a(n), t.tokenize(e, t);
            if (/[\[\]{}\(\),;\:\.]/.test(n)) return u = n, null;
            if (/[\d']/.test(n)) return e.eatWhile(/[\w\.']/), "number";
            if ("-" == n && e.eat("-")) return e.skipToEnd(), "comment";
            if (b.test(n)) return e.eatWhile(b), "operator";
            e.eatWhile(/[\w\$_]/);
            var i = e.current();
            return h.propertyIsEnumerable(i.toLowerCase()) ? (g.propertyIsEnumerable(i) && (u = "newstatement"), "keyword") : f.propertyIsEnumerable(i) ? "atom" : "variable"
        }

        function a(e) {
            return function (t, n) {
                for (var r, a = !1, o = !1; null != (r = t.next());) {
                    if (r == e && !a) {
                        o = !0;
                        break
                    }
                    a = !a && "--" == r
                }
                return (o || !a && !p) && (n.tokenize = i), "string"
            }
        }

        function o(e) {
            return function (t, n) {
                for (var r, a = !1, o = !1; null != (r = t.next());) {
                    if (r == e && !a) {
                        o = !0;
                        break
                    }
                    a = !a && "--" == r
                }
                return (o || !a && !p) && (n.tokenize = i), "string-2"
            }
        }

        function s(e, t, n, r, i) {
            this.indented = e, this.column = t, this.type = n, this.align = r, this.prev = i
        }

        function l(e, t, n) {
            return e.context = new s(e.indented, t, n, null, e.context)
        }

        function c(e) {
            var t = e.context.type;
            return ")" != t && "]" != t && "}" != t || (e.indented = e.context.indented), e.context = e.context.prev
        }

        var u, d = e.indentUnit, f = r.atoms || t("null"), m = r.hooks || {"`": n, $: n}, p = r.multiLineStrings,
            h = t("abs,access,after,alias,all,and,architecture,array,assert,attribute,begin,block,body,buffer,bus,case,component,configuration,constant,disconnect,downto,else,elsif,end,end block,end case,end component,end for,end generate,end if,end loop,end process,end record,end units,entity,exit,file,for,function,generate,generic,generic map,group,guarded,if,impure,in,inertial,inout,is,label,library,linkage,literal,loop,map,mod,nand,new,next,nor,null,of,on,open,or,others,out,package,package body,port,port map,postponed,procedure,process,pure,range,record,register,reject,rem,report,return,rol,ror,select,severity,signal,sla,sll,sra,srl,subtype,then,to,transport,type,unaffected,units,until,use,variable,wait,when,while,with,xnor,xor"),
            g = t("architecture,entity,begin,case,port,else,elsif,end,for,function,if"),
            b = /[&|~><!\)\(*#%@+\/=?\:;}{,\.\^\-\[\]]/;
        return {
            startState: function (e) {
                return {tokenize: null, context: new s((e || 0) - d, 0, "top", !1), indented: 0, startOfLine: !0}
            }, token: function (e, t) {
                var n = t.context;
                if (e.sol() && (null == n.align && (n.align = !1), t.indented = e.indentation(), t.startOfLine = !0), e.eatSpace()) return null;
                u = null;
                var r = (t.tokenize || i)(e, t);
                if ("comment" == r || "meta" == r) return r;
                if (null == n.align && (n.align = !0), ";" != u && ":" != u || "statement" != n.type) if ("{" == u) l(t, e.column(), "}"); else if ("[" == u) l(t, e.column(), "]"); else if ("(" == u) l(t, e.column(), ")"); else if ("}" == u) {
                    for (; "statement" == n.type;) n = c(t);
                    for ("}" == n.type && (n = c(t)); "statement" == n.type;) n = c(t)
                } else u == n.type ? c(t) : ("}" == n.type || "top" == n.type || "statement" == n.type && "newstatement" == u) && l(t, e.column(), "statement"); else c(t);
                return t.startOfLine = !1, r
            }, indent: function (e, t) {
                if (e.tokenize != i && null != e.tokenize) return 0;
                var n = t && t.charAt(0), r = e.context, a = n == r.type;
                return "statement" == r.type ? r.indented + ("{" == n ? 0 : d) : r.align ? r.column + (a ? 0 : 1) : r.indented + (a ? 0 : d)
            }, electricChars: "{}"
        }
    }), e.defineMIME("text/x-vhdl", "vhdl")
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";
    e.defineMode("julia", function (e, t) {
        function n(e, t) {
            return void 0 === t && (t = "\\b"), new RegExp("^((" + e.join(")|(") + "))" + t)
        }

        function r(e) {
            return i(e, "[")
        }

        function i(e, t) {
            var n = a(e), r = a(e, 1);
            return void 0 === t && (t = "("), n === t || r === t && "for" === n
        }

        function a(e, t) {
            return void 0 === t && (t = 0), e.scopes.length <= t ? null : e.scopes[e.scopes.length - (t + 1)]
        }

        function o(e, t) {
            if (e.match(/^#=/, !1)) return t.tokenize = c, t.tokenize(e, t);
            var n = t.leavingExpr;
            if (e.sol() && (n = !1), t.leavingExpr = !1, n && e.match(/^'+/)) return "operator";
            if (e.match(/^\.{2,3}/)) return "operator";
            if (e.eatSpace()) return null;
            var o = e.peek();
            if ("#" === o) return e.skipToEnd(), "comment";
            "[" === o && t.scopes.push("["), "(" === o && t.scopes.push("(");
            var h = a(t);
            r(t) && "]" === o && ("for" === h && t.scopes.pop(), t.scopes.pop(), t.leavingExpr = !0), i(t) && ")" === o && ("for" === h && t.scopes.pop(), t.scopes.pop(), t.leavingExpr = !0);
            var w;
            if ((w = e.match(g, !1)) && t.scopes.push(w[0]), e.match(b, !1) && t.scopes.pop(), r(t)) {
                if ("end" == t.lastToken && e.match(/^:/)) return "operator";
                if (e.match(/^end/)) return "number"
            }
            if (e.match(/^::(?![:\$])/)) return t.tokenize = l, t.tokenize(e, t);
            if (!n && e.match(v) || e.match(/:\./)) return "builtin";
            if (e.match(/^{[^}]*}(?=\()/)) return "builtin";
            if (e.match(f)) return "operator";
            if (e.match(/^[0-9\.]/, !1)) {
                var S = RegExp(/^im\b/), E = !1;
                if (e.match(/^\d*\.(?!\.)\d*([Eef][\+\-]?\d+)?/i) && (E = !0), e.match(/^\d+\.(?!\.)\d*/) && (E = !0), e.match(/^\.\d+/) && (E = !0), e.match(/^0x\.[0-9a-f]+p[\+\-]?\d+/i) && (E = !0), e.match(/^0x[0-9a-f]+/i) && (E = !0), e.match(/^0b[01]+/i) && (E = !0), e.match(/^0o[0-7]+/i) && (E = !0), e.match(/^[1-9]\d*(e[\+\-]?\d+)?/) && (E = !0), e.match(/^0(?![\dx])/i) && (E = !0), E) return e.match(S), t.leavingExpr = !0, "number"
            }
            if (e.match(/^'/)) return t.tokenize = u, t.tokenize(e, t);
            if (e.match(x)) return t.tokenize = d(e.current()), t.tokenize(e, t);
            if (e.match(k)) return "meta";
            if (e.match(m)) return null;
            if (e.match(_)) return "keyword";
            if (e.match(y)) return "builtin";
            var z = t.isDefinition || "function" == t.lastToken || "macro" == t.lastToken || "type" == t.lastToken || "immutable" == t.lastToken;
            return e.match(p) ? z ? "." === e.peek() ? (t.isDefinition = !0, "variable") : (t.isDefinition = !1, "def") : e.match(/^({[^}]*})*\(/, !1) ? s(e, t) : (t.leavingExpr = !0, "variable") : (e.next(), "error")
        }

        function s(e, t) {
            var n = e.match(/^(\(\s*)/);
            if (n && (t.firstParenPos < 0 && (t.firstParenPos = t.scopes.length), t.scopes.push("("), t.charsAdvanced += n[1].length), "(" == a(t) && e.match(/^\)/) && (t.scopes.pop(), t.charsAdvanced += 1, t.scopes.length <= t.firstParenPos)) {
                var r = e.match(/^\s*?=(?!=)/, !1);
                return e.backUp(t.charsAdvanced), t.firstParenPos = -1, t.charsAdvanced = 0, r ? "def" : "builtin"
            }
            if (e.match(/^$/g, !1)) {
                for (e.backUp(t.charsAdvanced); t.scopes.length > t.firstParenPos;) t.scopes.pop();
                return t.firstParenPos = -1, t.charsAdvanced = 0, "builtin"
            }
            return t.charsAdvanced += e.match(/^([^()]*)/)[1].length, s(e, t)
        }

        function l(e, t) {
            return e.match(/.*?(?=,|;|{|}|\(|\)|=|$|\s)/), e.match(/^{/) ? t.nestedLevels++ : e.match(/^}/) && t.nestedLevels-- , t.nestedLevels > 0 ? e.match(/.*?(?={|})/) || e.next() : 0 == t.nestedLevels && (t.tokenize = o), "builtin"
        }

        function c(e, t) {
            return e.match(/^#=/) && t.nestedLevels++ , e.match(/.*?(?=(#=|=#))/) || e.skipToEnd(), e.match(/^=#/) && (t.nestedLevels-- , 0 == t.nestedLevels && (t.tokenize = o)), "comment"
        }

        function u(e, t) {
            var n, r = !1;
            if (e.match(h)) r = !0; else if (n = e.match(/\\u([a-f0-9]{1,4})(?=')/i)) ((i = parseInt(n[1], 16)) <= 55295 || i >= 57344) && (r = !0, e.next()); else if (n = e.match(/\\U([A-Fa-f0-9]{5,8})(?=')/)) {
                var i = parseInt(n[1], 16);
                i <= 1114111 && (r = !0, e.next())
            }
            return r ? (t.leavingExpr = !0, t.tokenize = o, "string") : (e.match(/^[^']+(?=')/) || e.skipToEnd(), e.match(/^'/) && (t.tokenize = o), "error")
        }

        function d(e) {
            return '"""' === e.substr(-3) ? e = '"""' : '"' === e.substr(-1) && (e = '"'), function (t, n) {
                if (t.eat("\\")) t.next(); else {
                    if (t.match(e)) return n.tokenize = o, n.leavingExpr = !0, "string";
                    t.eat(/[`"]/)
                }
                return t.eatWhile(/[^\\`"]/), "string"
            }
        }

        var f = t.operators || n(["\\.?[\\\\%*+\\-<>!=\\/^]=?", "\\.?[|&\\u00F7\\u2260\\u2264\\u2265]", "\\u00D7", "\\u2208", "\\u2209", "\\u220B", "\\u220C", "\\u2229", "\\u222A", "\\u2286", "\\u2288", "\\u228A", "\\u22c5", "\\?", "~", ":", "\\$", "\\.[<>]", "<<=?", ">>>?=?", "\\.[<>=]=", "->?", "\\/\\/", "=>", "<:", "\\bin\\b(?!\\()"], ""),
            m = t.delimiters || /^[;,()[\]{}]/, p = t.identifiers || /^[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/,
            h = n(["\\\\[0-7]{1,3}", "\\\\x[A-Fa-f0-9]{1,2}", "\\\\[abefnrtv0%?'\"\\\\]", "([^\\u0027\\u005C\\uD800-\\uDFFF]|[\\uD800-\\uDFFF][\\uDC00-\\uDFFF])"], "'"),
            g = n(["begin", "function", "type", "immutable", "let", "macro", "for", "while", "quote", "if", "else", "elseif", "try", "finally", "catch", "do"]),
            b = n(["end", "else", "elseif", "catch", "finally"]),
            _ = n(["if", "else", "elseif", "while", "for", "begin", "let", "end", "do", "try", "catch", "finally", "return", "break", "continue", "global", "local", "const", "export", "import", "importall", "using", "function", "macro", "module", "baremodule", "type", "immutable", "quote", "typealias", "abstract", "bitstype"]),
            y = n(["true", "false", "nothing", "NaN", "Inf"]), k = /^@[_A-Za-z][\w]*/,
            v = /^:[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/, x = /^(`|([_A-Za-z\u00A1-\uFFFF]*"("")?))/;
        return {
            startState: function () {
                return {
                    tokenize: o,
                    scopes: [],
                    lastToken: null,
                    leavingExpr: !1,
                    isDefinition: !1,
                    nestedLevels: 0,
                    charsAdvanced: 0,
                    firstParenPos: -1
                }
            },
            token: function (e, t) {
                var n = t.tokenize(e, t), r = e.current();
                return r && n && (t.lastToken = r), "." === r && (n = e.match(p, !1) || e.match(k, !1) || e.match(/\(/, !1) ? "operator" : "error"), n
            },
            indent: function (t, n) {
                var r = 0;
                return "]" !== n && ")" !== n && "end" !== n && "else" !== n && "catch" !== n && "elseif" !== n && "finally" !== n || (r = -1), (t.scopes.length + r) * e.indentUnit
            },
            electricInput: /\b(end|else|catch|finally)\b/,
            blockCommentStart: "#=",
            blockCommentEnd: "=#",
            lineComment: "#",
            fold: "indent"
        }
    }), e.defineMIME("text/x-julia", "julia")
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";
    e.defineMode("haxe", function (e, t) {
        function n(e) {
            return {type: e, style: "keyword"}
        }

        function r(e, t, n) {
            return t.tokenize = n, n(e, t)
        }

        function i(e, t) {
            for (var n, r = !1; null != (n = e.next());) {
                if (n == t && !r) return !0;
                r = !r && "\\" == n
            }
        }

        function a(e, t, n) {
            return ee = e, Z = n, t
        }

        function o(e, t) {
            var n = e.next();
            if ('"' == n || "'" == n) return r(e, t, s(n));
            if (/[\[\]{}\(\),;\:\.]/.test(n)) return a(n);
            if ("0" == n && e.eat(/x/i)) return e.eatWhile(/[\da-f]/i), a("number", "number");
            if (/\d/.test(n) || "-" == n && e.eat(/\d/)) return e.match(/^\d*(?:\.\d*(?!\.))?(?:[eE][+\-]?\d+)?/), a("number", "number");
            if (t.reAllowed && "~" == n && e.eat(/\//)) return i(e, "/"), e.eatWhile(/[gimsu]/), a("regexp", "string-2");
            if ("/" == n) return e.eat("*") ? r(e, t, l) : e.eat("/") ? (e.skipToEnd(), a("comment", "comment")) : (e.eatWhile(ne), a("operator", null, e.current()));
            if ("#" == n) return e.skipToEnd(), a("conditional", "meta");
            if ("@" == n) return e.eat(/:/), e.eatWhile(/[\w_]/), a("metadata", "meta");
            if (ne.test(n)) return e.eatWhile(ne), a("operator", null, e.current());
            if (/[A-Z]/.test(n)) return e.eatWhile(/[\w_<>]/), o = e.current(), a("type", "variable-3", o);
            e.eatWhile(/[\w_]/);
            var o = e.current(), c = te.propertyIsEnumerable(o) && te[o];
            return c && t.kwAllowed ? a(c.type, c.style, o) : a("variable", "variable", o)
        }

        function s(e) {
            return function (t, n) {
                return i(t, e) && (n.tokenize = o), a("string", "string")
            }
        }

        function l(e, t) {
            for (var n, r = !1; n = e.next();) {
                if ("/" == n && r) {
                    t.tokenize = o;
                    break
                }
                r = "*" == n
            }
            return a("comment", "comment")
        }

        function c(e, t, n, r, i, a) {
            this.indented = e, this.column = t, this.type = n, this.prev = i, this.info = a, null != r && (this.align = r)
        }

        function u(e, t) {
            for (var n = e.localVars; n; n = n.next) if (n.name == t) return !0
        }

        function d(e, t, n, r, i) {
            var a = e.cc;
            for (ie.state = e, ie.stream = i, ie.marked = null, ie.cc = a, e.lexical.hasOwnProperty("align") || (e.lexical.align = !0); ;) if ((a.length ? a.pop() : w)(n, r)) {
                for (; a.length && a[a.length - 1].lex;) a.pop()();
                return ie.marked ? ie.marked : "variable" == n && u(e, r) ? "variable-2" : "variable" == n && f(e, r) ? "variable-3" : t
            }
        }

        function f(e, t) {
            if (/[a-z]/.test(t.charAt(0))) return !1;
            for (var n = e.importedtypes.length, r = 0; r < n; r++) if (e.importedtypes[r] == t) return !0
        }

        function m(e) {
            for (var t = ie.state, n = t.importedtypes; n; n = n.next) if (n.name == e) return;
            t.importedtypes = {name: e, next: t.importedtypes}
        }

        function p() {
            for (var e = arguments.length - 1; e >= 0; e--) ie.cc.push(arguments[e])
        }

        function h() {
            return p.apply(null, arguments), !0
        }

        function g(e, t) {
            for (var n = t; n; n = n.next) if (n.name == e) return !0;
            return !1
        }

        function b(e) {
            var t = ie.state;
            if (t.context) {
                if (ie.marked = "def", g(e, t.localVars)) return;
                t.localVars = {name: e, next: t.localVars}
            } else if (t.globalVars) {
                if (g(e, t.globalVars)) return;
                t.globalVars = {name: e, next: t.globalVars}
            }
        }

        function _() {
            ie.state.context || (ie.state.localVars = ae), ie.state.context = {
                prev: ie.state.context,
                vars: ie.state.localVars
            }
        }

        function y() {
            ie.state.localVars = ie.state.context.vars, ie.state.context = ie.state.context.prev
        }

        function k(e, t) {
            var n = function () {
                var n = ie.state;
                n.lexical = new c(n.indented, ie.stream.column(), e, null, n.lexical, t)
            };
            return n.lex = !0, n
        }

        function v() {
            var e = ie.state;
            e.lexical.prev && (")" == e.lexical.type && (e.indented = e.lexical.indented), e.lexical = e.lexical.prev)
        }

        function x(e) {
            function t(n) {
                return n == e ? h() : ";" == e ? p() : h(t)
            }

            return t
        }

        function w(e) {
            return "@" == e ? h(C) : "var" == e ? h(k("vardef"), R, x(";"), v) : "keyword a" == e ? h(k("form"), S, w, v) : "keyword b" == e ? h(k("form"), w, v) : "{" == e ? h(k("}"), _, L, v, y) : ";" == e ? h() : "attribute" == e ? h(M) : "function" == e ? h(W) : "for" == e ? h(k("form"), x("("), k(")"), F, x(")"), v, w, v) : "variable" == e ? h(k("stat"), A) : "switch" == e ? h(k("form"), S, k("}", "switch"), x("{"), L, v, v) : "case" == e ? h(S, x(":")) : "default" == e ? h(x(":")) : "catch" == e ? h(k("form"), _, x("("), H, x(")"), w, v, y) : "import" == e ? h(q, x(";")) : "typedef" == e ? h(I) : p(k("stat"), S, x(";"), v)
        }

        function S(e) {
            return re.hasOwnProperty(e) ? h(z) : "type" == e ? h(z) : "function" == e ? h(W) : "keyword c" == e ? h(E) : "(" == e ? h(k(")"), E, x(")"), v, z) : "operator" == e ? h(S) : "[" == e ? h(k("]"), P(E, "]"), v, z) : "{" == e ? h(k("}"), P($, "}"), v, z) : h()
        }

        function E(e) {
            return e.match(/[;\}\)\],]/) ? p() : p(S)
        }

        function z(e, t) {
            if ("operator" == e && /\+\+|--/.test(t)) return h(z);
            if ("operator" == e || ":" == e) return h(S);
            if (";" != e) return "(" == e ? h(k(")"), P(S, ")"), v, z) : "." == e ? h(j, z) : "[" == e ? h(k("]"), S, x("]"), v, z) : void 0
        }

        function M(e) {
            return "attribute" == e ? h(M) : "function" == e ? h(W) : "var" == e ? h(R) : void 0
        }

        function C(e) {
            return ":" == e ? h(C) : "variable" == e ? h(C) : "(" == e ? h(k(")"), P(T, ")"), v, w) : void 0
        }

        function T(e) {
            if ("variable" == e) return h()
        }

        function q(e, t) {
            return "variable" == e && /[A-Z]/.test(t.charAt(0)) ? (m(t), h()) : "variable" == e || "property" == e || "." == e || "*" == t ? h(q) : void 0
        }

        function I(e, t) {
            return "variable" == e && /[A-Z]/.test(t.charAt(0)) ? (m(t), h()) : "type" == e && /[A-Z]/.test(t.charAt(0)) ? h() : void 0
        }

        function A(e) {
            return ":" == e ? h(v, w) : p(z, x(";"), v)
        }

        function j(e) {
            if ("variable" == e) return ie.marked = "property", h()
        }

        function $(e) {
            if ("variable" == e && (ie.marked = "property"), re.hasOwnProperty(e)) return h(x(":"), S)
        }

        function P(e, t) {
            function n(r) {
                return "," == r ? h(e, n) : r == t ? h() : h(x(t))
            }

            return function (r) {
                return r == t ? h() : p(e, n)
            }
        }

        function L(e) {
            return "}" == e ? h() : p(w, L)
        }

        function R(e, t) {
            return "variable" == e ? (b(t), h(N, D)) : h()
        }

        function D(e, t) {
            return "=" == t ? h(S, D) : "," == e ? h(R) : void 0
        }

        function F(e, t) {
            return "variable" == e ? (b(t), h(O, S)) : p()
        }

        function O(e, t) {
            if ("in" == t) return h()
        }

        function W(e, t) {
            return "variable" == e || "type" == e ? (b(t), h(W)) : "new" == t ? h(W) : "(" == e ? h(k(")"), _, P(H, ")"), v, N, w, y) : void 0
        }

        function N(e) {
            if (":" == e) return h(U)
        }

        function U(e) {
            return "type" == e ? h() : "variable" == e ? h() : "{" == e ? h(k("}"), P(B, "}"), v) : void 0
        }

        function B(e) {
            if ("variable" == e) return h(N)
        }

        function H(e, t) {
            if ("variable" == e) return b(t), h(N)
        }

        var Z, V = e.indentUnit, G = n("keyword a"), K = n("keyword b"), Y = n("keyword c"), X = n("operator"),
            Q = {type: "atom", style: "atom"}, J = {type: "attribute", style: "attribute"}, ee = n("typedef"), te = {
                if: G,
                while: G,
                else: K,
                do: K,
                try: K,
                return: Y,
                break: Y,
                continue: Y,
                new: Y,
                throw: Y,
                var: n("var"),
                inline: J,
                static: J,
                using: n("import"),
                public: J,
                private: J,
                cast: n("cast"),
                import: n("import"),
                macro: n("macro"),
                function: n("function"),
                catch: n("catch"),
                untyped: n("untyped"),
                callback: n("cb"),
                for: n("for"),
                switch: n("switch"),
                case: n("case"),
                default: n("default"),
                in: X,
                never: n("property_access"),
                trace: n("trace"),
                class: ee,
                abstract: ee,
                enum: ee,
                interface: ee,
                typedef: ee,
                extends: ee,
                implements: ee,
                dynamic: ee,
                true: Q,
                false: Q,
                null: Q
            }, ne = /[+\-*&%=<>!?|]/, re = {atom: !0, number: !0, variable: !0, string: !0, regexp: !0},
            ie = {state: null, column: null, marked: null, cc: null}, ae = {name: "this", next: null};
        return y.lex = !0, v.lex = !0, {
            startState: function (e) {
                var n = ["Int", "Float", "String", "Void", "Std", "Bool", "Dynamic", "Array"], r = {
                    tokenize: o,
                    reAllowed: !0,
                    kwAllowed: !0,
                    cc: [],
                    lexical: new c((e || 0) - V, 0, "block", !1),
                    localVars: t.localVars,
                    importedtypes: n,
                    context: t.localVars && {vars: t.localVars},
                    indented: 0
                };
                return t.globalVars && "object" == typeof t.globalVars && (r.globalVars = t.globalVars), r
            }, token: function (e, t) {
                if (e.sol() && (t.lexical.hasOwnProperty("align") || (t.lexical.align = !1), t.indented = e.indentation()), e.eatSpace()) return null;
                var n = t.tokenize(e, t);
                return "comment" == ee ? n : (t.reAllowed = !("operator" != ee && "keyword c" != ee && !ee.match(/^[\[{}\(,;:]$/)), t.kwAllowed = "." != ee, d(t, n, ee, Z, e))
            }, indent: function (e, t) {
                if (e.tokenize != o) return 0;
                var n = t && t.charAt(0), r = e.lexical;
                "stat" == r.type && "}" == n && (r = r.prev);
                var i = r.type, a = n == i;
                return "vardef" == i ? r.indented + 4 : "form" == i && "{" == n ? r.indented : "stat" == i || "form" == i ? r.indented + V : "switch" != r.info || a ? r.align ? r.column + (a ? 0 : 1) : r.indented + (a ? 0 : V) : r.indented + (/^(?:case|default)\b/.test(t) ? V : 2 * V)
            }, electricChars: "{}", blockCommentStart: "/*", blockCommentEnd: "*/", lineComment: "//"
        }
    }), e.defineMIME("text/x-haxe", "haxe"), e.defineMode("hxml", function () {
        return {
            startState: function () {
                return {define: !1, inString: !1}
            }, token: function (e, t) {
                var n = e.peek(), r = e.sol();
                if ("#" == n) return e.skipToEnd(), "comment";
                if (r && "-" == n) {
                    var i = "variable-2";
                    return e.eat(/-/), "-" == e.peek() && (e.eat(/-/), i = "keyword a"), "D" == e.peek() && (e.eat(/[D]/), i = "keyword c", t.define = !0), e.eatWhile(/[A-Z]/i), i
                }
                n = e.peek();
                return 0 == t.inString && "'" == n && (t.inString = !0, e.next()), 1 == t.inString ? (e.skipTo("'") || e.skipToEnd(), "'" == e.peek() && (e.next(), t.inString = !1), "string") : (e.next(), null)
            }, lineComment: "#"
        }
    }), e.defineMIME("text/x-hxml", "hxml")
}), define("codemirror/mode/stex/stex", [], function (e, t, n) {
    var r = e("codemirror/lib/codemirror");
    r.defineMode("stex", function () {
        "use strict";

        function e(e, t) {
            e.cmdState.push(t)
        }

        function t(e) {
            return e.cmdState.length > 0 ? e.cmdState[e.cmdState.length - 1] : null
        }

        function n(e) {
            var t = e.cmdState.pop();
            t && t.closeBracket()
        }

        function r(e) {
            for (var t = e.cmdState, n = t.length - 1; n >= 0; n--) {
                var r = t[n];
                if ("DEFAULT" != r.name) return r
            }
            return {
                styleIdentifier: function () {
                    return null
                }
            }
        }

        function i(e, t, n) {
            return function () {
                this.name = e, this.bracketNo = 0, this.style = t, this.styles = n, this.argument = null, this.styleIdentifier = function () {
                    return this.styles[this.bracketNo - 1] || null
                }, this.openBracket = function () {
                    return this.bracketNo++ , "bracket"
                }, this.closeBracket = function () {
                }
            }
        }

        function a(e, t) {
            e.f = t
        }

        function o(n, i) {
            var o;
            if (n.match(/^\\[a-zA-Z@]+/)) {
                var u = n.current().slice(1);
                return o = c[u] || c.DEFAULT, o = new o, e(i, o), a(i, l), o.style
            }
            if (n.match(/^\\[$&%#{}_]/)) return "tag";
            if (n.match(/^\\[,;!\/\\]/)) return "tag";
            if (n.match("\\[")) return a(i, function (e, t) {
                return s(e, t, "\\]")
            }), "keyword";
            if (n.match("$$")) return a(i, function (e, t) {
                return s(e, t, "$$")
            }), "keyword";
            if (n.match("$")) return a(i, function (e, t) {
                return s(e, t, "$")
            }), "keyword";
            var d = n.next();
            return "%" == d ? (n.skipToEnd(), "comment") : "}" == d || "]" == d ? (o = t(i)) ? (o.closeBracket(d), a(i, l), "bracket") : "error" : "{" == d || "[" == d ? (o = c.DEFAULT, o = new o, e(i, o), "bracket") : /\d/.test(d) ? (n.eatWhile(/[\w.%]/), "atom") : (n.eatWhile(/[\w\-_]/), "begin" == (o = r(i)).name && (o.argument = n.current()), o.styleIdentifier())
        }

        function s(e, t, n) {
            if (e.eatSpace()) return null;
            if (e.match(n)) return a(t, o), "keyword";
            if (e.match(/^\\[a-zA-Z@]+/)) return "tag";
            if (e.match(/^[a-zA-Z]+/)) return "variable-2";
            if (e.match(/^\\[$&%#{}_]/)) return "tag";
            if (e.match(/^\\[,;!\/]/)) return "tag";
            if (e.match(/^[\^_&]/)) return "tag";
            if (e.match(/^[+\-<>|=,\/@!*:;'"`~#?]/)) return null;
            if (e.match(/^(\d+\.\d*|\d*\.\d+|\d+)/)) return "number";
            var r = e.next();
            return "{" == r || "}" == r || "[" == r || "]" == r || "(" == r || ")" == r ? "bracket" : "%" == r ? (e.skipToEnd(), "comment") : "error"
        }

        function l(e, r) {
            var i = e.peek();
            return "{" == i || "[" == i ? (t(r).openBracket(i), e.eat(i), a(r, o), "bracket") : /[ \t\r]/.test(i) ? (e.eat(i), null) : (a(r, o), n(r), o(e, r))
        }

        var c = {};
        return c.importmodule = i("importmodule", "tag", ["string", "builtin"]), c.documentclass = i("documentclass", "tag", ["", "atom"]), c.usepackage = i("usepackage", "tag", ["atom"]), c.begin = i("begin", "tag", ["atom"]), c.end = i("end", "tag", ["atom"]), c.DEFAULT = function () {
            this.name = "DEFAULT", this.style = "tag", this.styleIdentifier = this.openBracket = this.closeBracket = function () {
            }
        }, {
            startState: function () {
                return {cmdState: [], f: o}
            }, copyState: function (e) {
                return {cmdState: e.cmdState.slice(), f: e.f}
            }, token: function (e, t) {
                return t.f(e, t)
            }, blankLine: function (e) {
                e.f = o, e.cmdState.length = 0
            }, lineComment: "%"
        }
    }), r.defineMIME("text/x-stex", "stex"), r.defineMIME("text/x-latex", "stex")
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";
    e.defineMode("fortran", function () {
        function e(e) {
            for (var t = {}, n = 0; n < e.length; ++n) t[e[n]] = !0;
            return t
        }

        function t(e, t) {
            if (e.match(s)) return "operator";
            var l = e.next();
            if ("!" == l) return e.skipToEnd(), "comment";
            if ('"' == l || "'" == l) return t.tokenize = n(l), t.tokenize(e, t);
            if (/[\[\]\(\),]/.test(l)) return null;
            if (/\d/.test(l)) return e.eatWhile(/[\w\.]/), "number";
            if (o.test(l)) return e.eatWhile(o), "operator";
            e.eatWhile(/[\w\$_]/);
            var c = e.current().toLowerCase();
            return r.hasOwnProperty(c) ? "keyword" : i.hasOwnProperty(c) || a.hasOwnProperty(c) ? "builtin" : "variable"
        }

        function n(e) {
            return function (t, n) {
                for (var r, i = !1, a = !1; null != (r = t.next());) {
                    if (r == e && !i) {
                        a = !0;
                        break
                    }
                    i = !i && "\\" == r
                }
                return !a && i || (n.tokenize = null), "string"
            }
        }

        var r = e(["abstract", "accept", "allocatable", "allocate", "array", "assign", "asynchronous", "backspace", "bind", "block", "byte", "call", "case", "class", "close", "common", "contains", "continue", "cycle", "data", "deallocate", "decode", "deferred", "dimension", "do", "elemental", "else", "encode", "end", "endif", "entry", "enumerator", "equivalence", "exit", "external", "extrinsic", "final", "forall", "format", "function", "generic", "go", "goto", "if", "implicit", "import", "include", "inquire", "intent", "interface", "intrinsic", "module", "namelist", "non_intrinsic", "non_overridable", "none", "nopass", "nullify", "open", "optional", "options", "parameter", "pass", "pause", "pointer", "print", "private", "program", "protected", "public", "pure", "read", "recursive", "result", "return", "rewind", "save", "select", "sequence", "stop", "subroutine", "target", "then", "to", "type", "use", "value", "volatile", "where", "while", "write"]),
            i = e(["abort", "abs", "access", "achar", "acos", "adjustl", "adjustr", "aimag", "aint", "alarm", "all", "allocated", "alog", "amax", "amin", "amod", "and", "anint", "any", "asin", "associated", "atan", "besj", "besjn", "besy", "besyn", "bit_size", "btest", "cabs", "ccos", "ceiling", "cexp", "char", "chdir", "chmod", "clog", "cmplx", "command_argument_count", "complex", "conjg", "cos", "cosh", "count", "cpu_time", "cshift", "csin", "csqrt", "ctime", "c_funloc", "c_loc", "c_associated", "c_null_ptr", "c_null_funptr", "c_f_pointer", "c_null_char", "c_alert", "c_backspace", "c_form_feed", "c_new_line", "c_carriage_return", "c_horizontal_tab", "c_vertical_tab", "dabs", "dacos", "dasin", "datan", "date_and_time", "dbesj", "dbesj", "dbesjn", "dbesy", "dbesy", "dbesyn", "dble", "dcos", "dcosh", "ddim", "derf", "derfc", "dexp", "digits", "dim", "dint", "dlog", "dlog", "dmax", "dmin", "dmod", "dnint", "dot_product", "dprod", "dsign", "dsinh", "dsin", "dsqrt", "dtanh", "dtan", "dtime", "eoshift", "epsilon", "erf", "erfc", "etime", "exit", "exp", "exponent", "extends_type_of", "fdate", "fget", "fgetc", "float", "floor", "flush", "fnum", "fputc", "fput", "fraction", "fseek", "fstat", "ftell", "gerror", "getarg", "get_command", "get_command_argument", "get_environment_variable", "getcwd", "getenv", "getgid", "getlog", "getpid", "getuid", "gmtime", "hostnm", "huge", "iabs", "iachar", "iand", "iargc", "ibclr", "ibits", "ibset", "ichar", "idate", "idim", "idint", "idnint", "ieor", "ierrno", "ifix", "imag", "imagpart", "index", "int", "ior", "irand", "isatty", "ishft", "ishftc", "isign", "iso_c_binding", "is_iostat_end", "is_iostat_eor", "itime", "kill", "kind", "lbound", "len", "len_trim", "lge", "lgt", "link", "lle", "llt", "lnblnk", "loc", "log", "logical", "long", "lshift", "lstat", "ltime", "matmul", "max", "maxexponent", "maxloc", "maxval", "mclock", "merge", "move_alloc", "min", "minexponent", "minloc", "minval", "mod", "modulo", "mvbits", "nearest", "new_line", "nint", "not", "or", "pack", "perror", "precision", "present", "product", "radix", "rand", "random_number", "random_seed", "range", "real", "realpart", "rename", "repeat", "reshape", "rrspacing", "rshift", "same_type_as", "scale", "scan", "second", "selected_int_kind", "selected_real_kind", "set_exponent", "shape", "short", "sign", "signal", "sinh", "sin", "sleep", "sngl", "spacing", "spread", "sqrt", "srand", "stat", "sum", "symlnk", "system", "system_clock", "tan", "tanh", "time", "tiny", "transfer", "transpose", "trim", "ttynam", "ubound", "umask", "unlink", "unpack", "verify", "xor", "zabs", "zcos", "zexp", "zlog", "zsin", "zsqrt"]),
            a = e(["c_bool", "c_char", "c_double", "c_double_complex", "c_float", "c_float_complex", "c_funptr", "c_int", "c_int16_t", "c_int32_t", "c_int64_t", "c_int8_t", "c_int_fast16_t", "c_int_fast32_t", "c_int_fast64_t", "c_int_fast8_t", "c_int_least16_t", "c_int_least32_t", "c_int_least64_t", "c_int_least8_t", "c_intmax_t", "c_intptr_t", "c_long", "c_long_double", "c_long_double_complex", "c_long_long", "c_ptr", "c_short", "c_signed_char", "c_size_t", "character", "complex", "double", "integer", "logical", "real"]),
            o = /[+\-*&=<>\/\:]/, s = new RegExp("(.and.|.or.|.eq.|.lt.|.le.|.gt.|.ge.|.ne.|.not.|.eqv.|.neqv.)", "i");
        return {
            startState: function () {
                return {tokenize: null}
            }, token: function (e, n) {
                if (e.eatSpace()) return null;
                var r = (n.tokenize || t)(e, n);
                return r
            }
        }
    }), e.defineMIME("text/x-fortran", "fortran")
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";

    function t(e) {
        if (e.eatSpace()) return null;
        if (e.match("//")) return e.skipToEnd(), "comment";
        if (e.match(/^[0-9\.+-]/, !1)) {
            if (e.match(/^[+-]?0x[0-9a-fA-F]+/)) return "number";
            if (e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/)) return "number";
            if (e.match(/^[+-]?\d+([EeDd][+-]?\d+)?/)) return "number"
        }
        return e.match(/^"([^"]|(""))*"/) ? "string" : e.match(/^'([^']|(''))*'/) ? "string" : e.match(r) ? "keyword" : e.match(i) ? "variable" : (e.next(), null)
    }

    var n = ["package", "message", "import", "syntax", "required", "optional", "repeated", "reserved", "default", "extensions", "packed", "bool", "bytes", "double", "enum", "float", "string", "int32", "int64", "uint32", "uint64", "sint32", "sint64", "fixed32", "fixed64", "sfixed32", "sfixed64"],
        r = function (e) {
            return new RegExp("^((" + e.join(")|(") + "))\\b", "i")
        }(n);
    e.registerHelper("hintWords", "protobuf", n);
    var i = new RegExp("^[_A-Za-z¡-￿][_A-Za-z0-9¡-￿]*");
    e.defineMode("protobuf", function () {
        return {token: t}
    }), e.defineMIME("text/x-protobuf", "protobuf")
}), CodeMirror.defineMode("makefile", function () {
    function e(e, t) {
        for (var n = t.split(" "), r = 0; r < n.length; r++) i[n[r]] = e
    }

    function t(e, t) {
        if (e.eatSpace()) return null;
        var s = e.sol(), l = e.next();
        if ("%" === l && e.eat(":")) return "def";
        if ("@" === l) return "atom";
        if ("#" === l) return s && e.eat("!") ? (e.skipToEnd(), "meta") : (e.skipToEnd(), "comment");
        if ("$" === l && e.eat("(")) return t.tokens.unshift(a), r(e, t);
        if ("$" === l && e.eat("{")) return t.tokens.unshift(o), r(e, t);
        if ("$" === l && e.eat("$") && e.match(/^[\w]+/)) return "quote";
        if ("$" === l && (e.eat("@") || e.eat("<") || e.eat("^"))) return "quote";
        if ("'" === l || '"' === l || "`" === l) return t.tokens.unshift(n(l)), r(e, t);
        if ("i" === l && (e.match("feq ") || e.match("fneq "))) return e.skipToEnd(), "meta";
        if ("e" === l && (e.match("lse") || e.match("ndif"))) return "meta";
        if ("i" === l && e.match("nclude ")) return "string";
        if (s && e.match(/^\s*\w[^\s=:]*\s*(:|=)/)) return "def";
        e.eatWhile(/[\w-]/);
        var c = e.current();
        return i.hasOwnProperty(c) ? i[c] : null
    }

    function n(e) {
        return function (t, n) {
            for (var r; null != (r = t.next());) if (r === e) {
                !0;
                break
            }
            return n.tokens.shift(), ")" === e || "}" === e ? "quote" : "string"
        }
    }

    function r(e, n) {
        return (n.tokens[0] || t)(e, n)
    }

    var i = {};
    e("atom", "true false"), e("keyword", "if then do else elif while until for in esac fi fin fil done exit set unset export function"), e("builtin", "ab awk bash beep cat cc cd chown chmod chroot clear cp curl cut diff echo find gawk gcc get git grep kill killall ln ls make mkdir openssl mv nc node npm ping ps restart rm rmdir sed service sh shopt shred source sort sleep ssh start stop su sudo tee telnet top touch vi vim wall wc wget who write yes zsh");
    var a = function (e, t) {
        t.tokens.length > 1 && e.eat("$");
        e.next();
        return t.tokens[0] = n(")"), r(e, t)
    }, o = function (e, t) {
        t.tokens.length > 1 && e.eat("$");
        e.next();
        return t.tokens[0] = n("}"), r(e, t)
    };
    return {
        startState: function () {
            return {tokens: [], inMid: !1}
        }, token: function (e, t) {
            return r(e, t)
        }
    }
}), CodeMirror.defineMIME("text/x-makefile", "makefile"), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";
    e.defineMode("tcl", function () {
        function e(e) {
            for (var t = {}, n = e.split(" "), r = 0; r < n.length; ++r) t[n[r]] = !0;
            return t
        }

        function t(e, t, n) {
            return t.tokenize = n, n(e, t)
        }

        function n(e, n) {
            var c = n.beforeParams;
            n.beforeParams = !1;
            var u = e.next();
            if ('"' != u && "'" != u || !n.inParams) {
                if (/[\[\]{}\(\),;\.]/.test(u)) return "(" == u && c ? n.inParams = !0 : ")" == u && (n.inParams = !1), null;
                if (/\d/.test(u)) return e.eatWhile(/[\w\.]/), "number";
                if ("#" == u) return e.eat("*") ? t(e, n, i) : "#" == u && e.match(/ *\[ *\[/) ? t(e, n, a) : (e.skipToEnd(), "comment");
                if ('"' == u) return e.skipTo(/"/), "comment";
                if ("$" == u) return e.eatWhile(/[$_a-z0-9A-Z\.{:]/), e.eatWhile(/}/), n.beforeParams = !0, "builtin";
                if (l.test(u)) return e.eatWhile(l), "comment";
                e.eatWhile(/[\w\$_{}\xa1-\uffff]/);
                var d = e.current().toLowerCase();
                return o && o.propertyIsEnumerable(d) ? "keyword" : s && s.propertyIsEnumerable(d) ? (n.beforeParams = !0, "keyword") : null
            }
            return t(e, n, r(u))
        }

        function r(e) {
            return function (t, r) {
                for (var i, a = !1, o = !1; null != (i = t.next());) {
                    if (i == e && !a) {
                        o = !0;
                        break
                    }
                    a = !a && "\\" == i
                }
                return o && (r.tokenize = n), "string"
            }
        }

        function i(e, t) {
            for (var r, i = !1; r = e.next();) {
                if ("#" == r && i) {
                    t.tokenize = n;
                    break
                }
                i = "*" == r
            }
            return "comment"
        }

        function a(e, t) {
            for (var r, i = 0; r = e.next();) {
                if ("#" == r && 2 == i) {
                    t.tokenize = n;
                    break
                }
                "]" == r ? i++ : " " != r && (i = 0)
            }
            return "meta"
        }

        var o = e("Tcl safe after append array auto_execok auto_import auto_load auto_mkindex auto_mkindex_old auto_qualify auto_reset bgerror binary break catch cd close concat continue dde eof encoding error eval exec exit expr fblocked fconfigure fcopy file fileevent filename filename flush for foreach format gets glob global history http if incr info interp join lappend lindex linsert list llength load lrange lreplace lsearch lset lsort memory msgcat namespace open package parray pid pkg::create pkg_mkIndex proc puts pwd re_syntax read regex regexp registry regsub rename resource return scan seek set socket source split string subst switch tcl_endOfWord tcl_findLibrary tcl_startOfNextWord tcl_wordBreakAfter tcl_startOfPreviousWord tcl_wordBreakBefore tcltest tclvars tell time trace unknown unset update uplevel upvar variable vwait"),
            s = e("if elseif else and not or eq ne in ni for foreach while switch"), l = /[+\-*&%=<>!?^\/\|]/;
        return {
            startState: function () {
                return {tokenize: n, beforeParams: !1, inParams: !1}
            }, token: function (e, t) {
                return e.eatSpace() ? null : t.tokenize(e, t)
            }
        }
    }), e.defineMIME("text/x-tcl", "tcl")
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";
    e.defineMode("scheme", function () {
        function e(e) {
            for (var t = {}, n = e.split(" "), r = 0; r < n.length; ++r) t[n[r]] = !0;
            return t
        }

        function t(e, t, n) {
            this.indent = e, this.type = t, this.prev = n
        }

        function n(e, n, r) {
            e.indentStack = new t(n, r, e.indentStack)
        }

        function r(e) {
            e.indentStack = e.indentStack.prev
        }

        function i(e) {
            return e.match(u)
        }

        function a(e) {
            return e.match(d)
        }

        function o(e, t) {
            return !0 === t && e.backUp(1), e.match(m)
        }

        function s(e) {
            return e.match(f)
        }

        var l = e("λ case-lambda call/cc class define-class exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci<? char-ci=? char-ci>=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char<? char=? char>=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt #f floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci<? string-ci=? string-ci>=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string<? string=? string>=? string>? string? substring symbol->string symbol? #t tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"),
            c = e("define let letrec let* lambda"),
            u = new RegExp(/^(?:[-+]i|[-+][01]+#*(?:\/[01]+#*)?i|[-+]?[01]+#*(?:\/[01]+#*)?@[-+]?[01]+#*(?:\/[01]+#*)?|[-+]?[01]+#*(?:\/[01]+#*)?[-+](?:[01]+#*(?:\/[01]+#*)?)?i|[-+]?[01]+#*(?:\/[01]+#*)?)(?=[()\s;"]|$)/i),
            d = new RegExp(/^(?:[-+]i|[-+][0-7]+#*(?:\/[0-7]+#*)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?@[-+]?[0-7]+#*(?:\/[0-7]+#*)?|[-+]?[0-7]+#*(?:\/[0-7]+#*)?[-+](?:[0-7]+#*(?:\/[0-7]+#*)?)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?)(?=[()\s;"]|$)/i),
            f = new RegExp(/^(?:[-+]i|[-+][\da-f]+#*(?:\/[\da-f]+#*)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?@[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?[-+](?:[\da-f]+#*(?:\/[\da-f]+#*)?)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?)(?=[()\s;"]|$)/i),
            m = new RegExp(/^(?:[-+]i|[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)i|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)@[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)?i|(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*))(?=[()\s;"]|$)/i);
        return {
            startState: function () {
                return {indentStack: null, indentation: 0, mode: !1, sExprComment: !1}
            }, token: function (e, t) {
                if (null == t.indentStack && e.sol() && (t.indentation = e.indentation()), e.eatSpace()) return null;
                var u = null;
                switch (t.mode) {
                    case "string":
                        for (var d = !1; null != (f = e.next());) {
                            if ('"' == f && !d) {
                                t.mode = !1;
                                break
                            }
                            d = !d && "\\" == f
                        }
                        u = "string";
                        break;
                    case "comment":
                        for (var f, m = !1; null != (f = e.next());) {
                            if ("#" == f && m) {
                                t.mode = !1;
                                break
                            }
                            m = "|" == f
                        }
                        u = "comment";
                        break;
                    case "s-expr-comment":
                        if (t.mode = !1, "(" != e.peek() && "[" != e.peek()) {
                            e.eatWhile(/[^/s]/), u = "comment";
                            break
                        }
                        t.sExprComment = 0;
                    default:
                        var p = e.next();
                        if ('"' == p) t.mode = "string", u = "string"; else if ("'" == p) u = "atom"; else if ("#" == p) if (e.eat("|")) t.mode = "comment", u = "comment"; else if (e.eat(/[tf]/i)) u = "atom"; else if (e.eat(";")) t.mode = "s-expr-comment", u = "comment"; else {
                            var h = null, g = !1, b = !0;
                            e.eat(/[ei]/i) ? g = !0 : e.backUp(1), e.match(/^#b/i) ? h = i : e.match(/^#o/i) ? h = a : e.match(/^#x/i) ? h = s : e.match(/^#d/i) ? h = o : e.match(/^[-+0-9.]/, !1) ? (b = !1, h = o) : g || e.eat("#"), null != h && (b && !g && e.match(/^#[ei]/i), h(e) && (u = "number"))
                        } else if (/^[-+0-9.]/.test(p) && o(e, !0)) u = "number"; else if (";" == p) e.skipToEnd(), u = "comment"; else if ("(" == p || "[" == p) {
                            for (var _, y = "", k = e.column(); null != (_ = e.eat(/[^\s\(\[\;\)\]]/));) y += _;
                            y.length > 0 && c.propertyIsEnumerable(y) ? n(t, k + 2, p) : (e.eatSpace(), e.eol() || ";" == e.peek() ? n(t, k + 1, p) : n(t, k + e.current().length, p)), e.backUp(e.current().length - 1), "number" == typeof t.sExprComment && t.sExprComment++ , u = "bracket"
                        } else ")" == p || "]" == p ? (u = "bracket", null != t.indentStack && t.indentStack.type == (")" == p ? "(" : "[") && (r(t), "number" == typeof t.sExprComment && 0 == --t.sExprComment && (u = "comment", t.sExprComment = !1))) : (e.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/), u = l && l.propertyIsEnumerable(e.current()) ? "builtin" : "variable")
                }
                return "number" == typeof t.sExprComment ? "comment" : u
            }, indent: function (e) {
                return null == e.indentStack ? e.indentation : e.indentStack.indent
            }, closeBrackets: {pairs: '()[]{}""'}, lineComment: ";;"
        }
    }), e.defineMIME("text/x-scheme", "scheme")
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror"), require("../../addon/mode/multiplex")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror", "../../addon/mode/multiplex"], e) : e(CodeMirror)
}(function (e) {
    "use strict";
    e.defineMode("twig:inner", function () {
        function e(e, o) {
            var s = e.peek();
            if (o.incomment) return e.skipTo("#}") ? (e.eatWhile(/\#|}/), o.incomment = !1) : e.skipToEnd(), "comment";
            if (o.intag) {
                if (o.operator) {
                    if (o.operator = !1, e.match(i)) return "atom";
                    if (e.match(a)) return "number"
                }
                if (o.sign) {
                    if (o.sign = !1, e.match(i)) return "atom";
                    if (e.match(a)) return "number"
                }
                if (o.instring) return s == o.instring && (o.instring = !1), e.next(), "string";
                if ("'" == s || '"' == s) return o.instring = s, e.next(), "string";
                if (e.match(o.intag + "}") || e.eat("-") && e.match(o.intag + "}")) return o.intag = !1, "tag";
                if (e.match(n)) return o.operator = !0, "operator";
                if (e.match(r)) o.sign = !0; else if (e.eat(" ") || e.sol()) {
                    if (e.match(t)) return "keyword";
                    if (e.match(i)) return "atom";
                    if (e.match(a)) return "number";
                    e.sol() && e.next()
                } else e.next();
                return "variable"
            }
            if (e.eat("{")) {
                if (e.eat("#")) return o.incomment = !0, e.skipTo("#}") ? (e.eatWhile(/\#|}/), o.incomment = !1) : e.skipToEnd(), "comment";
                if (s = e.eat(/\{|%/)) return o.intag = s, "{" == s && (o.intag = "}"), e.eat("-"), "tag"
            }
            e.next()
        }

        var t = ["and", "as", "autoescape", "endautoescape", "block", "do", "endblock", "else", "elseif", "extends", "for", "endfor", "embed", "endembed", "filter", "endfilter", "flush", "from", "if", "endif", "in", "is", "include", "import", "not", "or", "set", "spaceless", "endspaceless", "with", "endwith", "trans", "endtrans", "blocktrans", "endblocktrans", "macro", "endmacro", "use", "verbatim", "endverbatim"],
            n = /^[+\-*&%=<>!?|~^]/, r = /^[:\[\(\{]/,
            i = ["true", "false", "null", "empty", "defined", "divisibleby", "divisible by", "even", "odd", "iterable", "sameas", "same as"],
            a = /^(\d[+\-\*\/])?\d+(\.\d+)?/;
        return t = new RegExp("((" + t.join(")|(") + "))\\b"), i = new RegExp("((" + i.join(")|(") + "))\\b"), {
            startState: function () {
                return {}
            }, token: function (t, n) {
                return e(t, n)
            }
        }
    }), e.defineMode("twig", function (t, n) {
        var r = e.getMode(t, "twig:inner");
        return n && n.base ? e.multiplexingMode(e.getMode(t, n.base), {
            open: /\{[{#%]/,
            close: /[}#%]\}/,
            mode: r,
            parseDelimiters: !0
        }) : r
    }), e.defineMIME("text/x-twig", "twig")
}), function (e) {
    "object" == typeof exports && "object" == typeof module ? e(require("../../lib/codemirror")) : "function" == typeof define && define.amd ? define(["../../lib/codemirror"], e) : e(CodeMirror)
}(function (e) {
    "use strict";
    e.defineMode("sas", function () {
        function e(e, t, r) {
            if (r) for (var i = t.split(" "), a = 0; a < i.length; a++) n[i[a]] = {style: e, state: r}
        }

        function t(e, t) {
            var o = e.next() || "";
            if ("/" === o && e.eat("*")) return t.continueComment = !0, "comment";
            if (!0 === t.continueComment) return "*" === o && "/" === e.peek() ? (e.next(), t.continueComment = !1) : e.skipTo("*") ? (e.skipTo("*"), e.next(), e.eat("/") && (t.continueComment = !1)) : e.skipToEnd(), "comment";
            if ("*" == o && e.column() == e.indentation()) return e.skipToEnd(), "comment";
            var s = o + e.peek();
            if (!('"' !== o && "'" !== o || t.continueString)) return t.continueString = o, "string";
            if (t.continueString) return t.continueString == o ? t.continueString = null : e.skipTo(t.continueString) ? (e.next(), t.continueString = null) : e.skipToEnd(), "string";
            if (null !== t.continueString && e.eol()) return e.skipTo(t.continueString) || e.skipToEnd(), "string";
            if (/[\d\.]/.test(o)) return "." === o ? e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/) : "0" === o ? e.match(/^[xX][0-9a-fA-F]+/) || e.match(/^0[0-7]+/) : e.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/), "number";
            if (i.test(o + e.peek())) return e.next(), "operator";
            if (r.hasOwnProperty(s)) {
                if (e.next(), " " === e.peek()) return r[s.toLowerCase()]
            } else if (a.test(o)) return "operator";
            var l;
            if (null != e.match(/[%&;\w]+/, !1)) {
                if (l = o + e.match(/[%&;\w]+/, !0), /&/.test(l)) return "variable"
            } else l = o;
            if (t.nextword) return e.match(/[\w]+/), "." === e.peek() && e.skipTo(" "), t.nextword = !1, "variable-2";
            if (l = l.toLowerCase(), t.inDataStep) {
                if ("run;" === l || e.match(/run\s;/)) return t.inDataStep = !1, "builtin";
                if (l && "." === e.next()) return /\w/.test(e.peek()) ? "variable-2" : "variable";
                if (l && n.hasOwnProperty(l) && (-1 !== n[l].state.indexOf("inDataStep") || -1 !== n[l].state.indexOf("ALL"))) {
                    e.start < e.pos && e.backUp(e.pos - e.start);
                    for (var c = 0; c < l.length; ++c) e.next();
                    return n[l].style
                }
            }
            if (t.inProc) {
                if ("run;" === l || "quit;" === l) return t.inProc = !1, "builtin";
                if (l && n.hasOwnProperty(l) && (-1 !== n[l].state.indexOf("inProc") || -1 !== n[l].state.indexOf("ALL"))) return e.match(/[\w]+/), n[l].style
            }
            return t.inMacro ? "%mend" === l ? (";" === e.peek() && e.next(), t.inMacro = !1, "builtin") : l && n.hasOwnProperty(l) && (-1 !== n[l].state.indexOf("inMacro") || -1 !== n[l].state.indexOf("ALL")) ? (e.match(/[\w]+/), n[l].style) : "atom" : l && n.hasOwnProperty(l) ? (e.backUp(1), e.match(/[\w]+/), "data" === l && !1 === /=/.test(e.peek()) ? (t.inDataStep = !0, t.nextword = !0, "builtin") : "proc" === l ? (t.inProc = !0, t.nextword = !0, "builtin") : "%macro" === l ? (t.inMacro = !0, t.nextword = !0, "builtin") : /title[1-9]/.test(l) ? "def" : "footnote" === l ? (e.eat(/[1-9]/), "def") : !0 === t.inDataStep && -1 !== n[l].state.indexOf("inDataStep") ? n[l].style : !0 === t.inProc && -1 !== n[l].state.indexOf("inProc") ? n[l].style : !0 === t.inMacro && -1 !== n[l].state.indexOf("inMacro") ? n[l].style : -1 !== n[l].state.indexOf("ALL") ? n[l].style : null) : null
        }

        var n = {}, r = {
            eq: "operator",
            lt: "operator",
            le: "operator",
            gt: "operator",
            ge: "operator",
            in: "operator",
            ne: "operator",
            or: "operator"
        }, i = /(<=|>=|!=|<>)/, a = /[=\(:\),{}.*<>+\-\/^\[\]]/;
        return e("def", "stack pgm view source debug nesting nolist", ["inDataStep"]), e("def", "if while until for do do; end end; then else cancel", ["inDataStep"]), e("def", "label format _n_ _error_", ["inDataStep"]), e("def", "ALTER BUFNO BUFSIZE CNTLLEV COMPRESS DLDMGACTION ENCRYPT ENCRYPTKEY EXTENDOBSCOUNTER GENMAX GENNUM INDEX LABEL OBSBUF OUTREP PW PWREQ READ REPEMPTY REPLACE REUSE ROLE SORTEDBY SPILL TOBSNO TYPE WRITE FILECLOSE FIRSTOBS IN OBS POINTOBS WHERE WHEREUP IDXNAME IDXWHERE DROP KEEP RENAME", ["inDataStep"]), e("def", "filevar finfo finv fipname fipnamel fipstate first firstobs floor", ["inDataStep"]), e("def", "varfmt varinfmt varlabel varlen varname varnum varray varrayx vartype verify vformat vformatd vformatdx vformatn vformatnx vformatw vformatwx vformatx vinarray vinarrayx vinformat vinformatd vinformatdx vinformatn vinformatnx vinformatw vinformatwx vinformatx vlabel vlabelx vlength vlengthx vname vnamex vnferr vtype vtypex weekday", ["inDataStep"]), e("def", "zipfips zipname zipnamel zipstate", ["inDataStep"]), e("def", "put putc putn", ["inDataStep"]), e("builtin", "data run", ["inDataStep"]), e("def", "data", ["inProc"]), e("def", "%if %end %end; %else %else; %do %do; %then", ["inMacro"]), e("builtin", "proc run; quit; libname filename %macro %mend option options", ["ALL"]), e("def", "footnote title libname ods", ["ALL"]), e("def", "%let %put %global %sysfunc %eval ", ["ALL"]), e("variable", "&sysbuffr &syscc &syscharwidth &syscmd &sysdate &sysdate9 &sysday &sysdevic &sysdmg &sysdsn &sysencoding &sysenv &syserr &syserrortext &sysfilrc &syshostname &sysindex &sysinfo &sysjobid &syslast &syslckrc &syslibrc &syslogapplname &sysmacroname &sysmenv &sysmsg &sysncpu &sysodspath &sysparm &syspbuff &sysprocessid &sysprocessname &sysprocname &sysrc &sysscp &sysscpl &sysscpl &syssite &sysstartid &sysstartname &systcpiphostname &systime &sysuserid &sysver &sysvlong &sysvlong4 &syswarningtext", ["ALL"]), e("def", "source2 nosource2 page pageno pagesize", ["ALL"]), e("def", "_all_ _character_ _cmd_ _freq_ _i_ _infile_ _last_ _msg_ _null_ _numeric_ _temporary_ _type_ abort abs addr adjrsq airy alpha alter altlog altprint and arcos array arsin as atan attrc attrib attrn authserver autoexec awscontrol awsdef awsmenu awsmenumerge awstitle backward band base betainv between blocksize blshift bnot bor brshift bufno bufsize bxor by byerr byline byte calculated call cards cards4 catcache cbufno cdf ceil center cexist change chisq cinv class cleanup close cnonct cntllev coalesce codegen col collate collin column comamid comaux1 comaux2 comdef compbl compound compress config continue convert cos cosh cpuid create cross crosstab css curobs cv daccdb daccdbsl daccsl daccsyd dacctab dairy datalines datalines4 datejul datepart datetime day dbcslang dbcstype dclose ddm delete delimiter depdb depdbsl depsl depsyd deptab dequote descending descript design= device dflang dhms dif digamma dim dinfo display distinct dkricond dkrocond dlm dnum do dopen doptname doptnum dread drop dropnote dsname dsnferr echo else emaildlg emailid emailpw emailserver emailsys encrypt end endsas engine eof eov erf erfc error errorcheck errors exist exp fappend fclose fcol fdelete feedback fetch fetchobs fexist fget file fileclose fileexist filefmt filename fileref  fmterr fmtsearch fnonct fnote font fontalias  fopen foptname foptnum force formatted formchar formdelim formdlim forward fpoint fpos fput fread frewind frlen from fsep fuzz fwrite gaminv gamma getoption getvarc getvarn go goto group gwindow hbar hbound helpenv helploc hms honorappearance hosthelp hostprint hour hpct html hvar ibessel ibr id if index indexc indexw initcmd initstmt inner input inputc inputn inr insert int intck intnx into intrr invaliddata irr is jbessel join juldate keep kentb kurtosis label lag last lbound leave left length levels lgamma lib  library libref line linesize link list log log10 log2 logpdf logpmf logsdf lostcard lowcase lrecl ls macro macrogen maps mautosource max maxdec maxr mdy mean measures median memtype merge merror min minute missing missover mlogic mod mode model modify month mopen mort mprint mrecall msglevel msymtabmax mvarsize myy n nest netpv new news nmiss no nobatch nobs nocaps nocardimage nocenter nocharcode nocmdmac nocol nocum nodate nodbcs nodetails nodmr nodms nodmsbatch nodup nodupkey noduplicates noechoauto noequals noerrorabend noexitwindows nofullstimer noicon noimplmac noint nolist noloadlist nomiss nomlogic nomprint nomrecall nomsgcase nomstored nomultenvappl nonotes nonumber noobs noovp nopad nopercent noprint noprintinit normal norow norsasuser nosetinit  nosplash nosymbolgen note notes notitle notitles notsorted noverbose noxsync noxwait npv null number numkeys nummousekeys nway obs  on open     order ordinal otherwise out outer outp= output over ovp p(1 5 10 25 50 75 90 95 99) pad pad2  paired parm parmcards path pathdll pathname pdf peek peekc pfkey pmf point poisson poke position printer probbeta probbnml probchi probf probgam probhypr probit probnegb probnorm probsig probt procleave prt ps  pw pwreq qtr quote r ranbin rancau ranexp rangam range ranks rannor ranpoi rantbl rantri ranuni read recfm register regr remote remove rename repeat replace resolve retain return reuse reverse rewind right round rsquare rtf rtrace rtraceloc s s2 samploc sasautos sascontrol sasfrscr sasmsg sasmstore sasscript sasuser saving scan sdf second select selection separated seq serror set setcomm setot sign simple sin sinh siteinfo skewness skip sle sls sortedby sortpgm sortseq sortsize soundex  spedis splashlocation split spool sqrt start std stderr stdin stfips stimer stname stnamel stop stopover subgroup subpopn substr sum sumwgt symbol symbolgen symget symput sysget sysin sysleave sysmsg sysparm sysprint sysprintfont sysprod sysrc system t table tables tan tanh tapeclose tbufsize terminal test then timepart tinv  tnonct to today tol tooldef totper transformout translate trantab tranwrd trigamma trim trimn trunc truncover type unformatted uniform union until upcase update user usericon uss validate value var  weight when where while wincharset window work workinit workterm write wsum xsync xwait yearcutoff yes yyq  min max", ["inDataStep", "inProc"]), e("operator", "and not ", ["inDataStep", "inProc"]), {
            startState: function () {
                return {
                    inDataStep: !1,
                    inProc: !1,
                    inMacro: !1,
                    nextword: !1,
                    continueString: null,
                    continueComment: !1
                }
            }, token: function (e, n) {
                return e.eatSpace() ? null : t(e, n)
            }, blockCommentStart: "/*", blockCommentEnd: "*/"
        }
    }), e.defineMIME("text/x-sas", "sas")
});